WhitePoint

Class

Common
data class WhitePoint(val x: Float, val y: Float)

Class for constructing white points used in RGB color space. The value is stored in the CIE xyY color space. The Y component of the white point is assumed to be 1.

Secondary Constructors

constructor(x: Float, y: Float, z: Float) : this(x, y, z, x + y + z)

Illuminant for CIE XYZ white point

private constructor(x: Float, y: Float, z: Float, sum: Float) : this(x / sum, y / sum)