ColorSpaceDefinition

class ColorSpaceDefinition(val primaries: DoubleArray, val whitePoint: DoubleArray, val transfer: ColorTransfer, val toXYZ: Matrix3, val fromXYZ: Matrix3, val luminanceCoefficients: DoubleArray)

Describes a single color space: its primaries, transfer function and the RGB<->XYZ conversion matrices. Corresponds to one entry of three.js's ColorManagement.spaces map.

Constructors

Link copied to clipboard
constructor(primaries: DoubleArray, whitePoint: DoubleArray, transfer: ColorTransfer, toXYZ: Matrix3, fromXYZ: Matrix3, luminanceCoefficients: DoubleArray)

Properties

Link copied to clipboard

XYZ-to-RGB transform.

Link copied to clipboard

RGB luminance coefficients.

Link copied to clipboard

Chromaticity coordinates [ rx ry gx gy bx by ].

Link copied to clipboard

RGB-to-XYZ transform.

Link copied to clipboard

The transfer function.

Link copied to clipboard

Reference white [ x y ].