Module color.xyz

CIE XYZ values referenced to D65 and conversions to and from linear-light sRGB.

Use XYZ D65 as the connection space between linear-light sRGB and color spaces built on D65 tristimulus values. Conversions are explicit and do not clip or gamut-map extended values.

Functions

NameDescription
toLinearSRgb(xyz) Converts CIE XYZ D65 to linear-light sRGB.
toXyzD65(rgb) Converts linear-light sRGB to CIE XYZ D65.

Structs

NameDescription
XyzD65 Stores CIE XYZ tristimulus values referenced to D65.

Aliases

NameTypeDescription
XyzD65d XyzD65!(double) XYZ D65 with double components.
XyzD65f XyzD65!(float) XYZ D65 with float components.