Struct XyzD65

Stores CIE XYZ tristimulus values referenced to D65.

struct XyzD65(T)
  
if (is(T == float) || is(T == double));

Use this type when a conversion or calculation needs XYZ D65 coordinates. T must be float or double. Construction stores components unchanged and does not clamp them to a display gamut.

The natural .init value contains NaNs and is not a usable color.

Fields

NameTypeDescription
x TX tristimulus component.
y TY tristimulus component.
z TZ tristimulus component.

Aliases

NameDescription
Scalar Scalar component type.

Example

const xyz = XyzD65d(0.25, 0.50, 0.75);

assert(xyz.x == 0.25);
assert(xyz.y == 0.50);
assert(xyz.z == 0.75);