The X component, related to a mix of the cone response curves
The Y component, representing luminance
The Z component, roughly equal to blue stimulation
Optional
alpha: numberThe alpha (opacity) component (0-1), optional
Optional
illuminant: IlluminantThe reference white point to use, defaults to D65
A new XYZ color object
Creates a new XYZ color object with the specified components.
This is the primary factory function for creating XYZ colors in the library. The created object includes methods for conversion to other color spaces and string representations. If no illuminant is specified, the standard D65 illuminant is used as the default.