A CIE 1931 xyY color, parameterised for component type.
Construct a color from xyY values.
Type of the color components.
Binary operators.
Cast to other color types.
Binary assignment operators.
Unary operators.
Y value (luminance).
x coordinate.
y coordinate.
// CIE xyY 1931 color with double components alias xyYd = xyY!double; xyYd c = xyYd(0.4, 0.5, 1); // test xyY operators and functions static assert(xyYd(0, 0.5, 0) + xyYd(0.5, 0.5, 1) == xyYd(0.5, 1, 1)); static assert(xyYd(0.5, 0.5, 1) * 100.0 == xyYd(50, 50, 100));
See Implementation
A CIE 1931 xyY color, parameterised for component type.