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 value contains NaNs and is not a usable color.
Fields
| Name | Type | Description |
|---|---|---|
x
|
T | X tristimulus component. |
y
|
T | Y tristimulus component. |
z
|
T | Z tristimulus component. |
Aliases
| Name | Description |
|---|---|
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);