colour.XYZ_to_xy¶
-
colour.
XYZ_to_xy
(XYZ, illuminant=array([ 0.3127, 0.329 ]))[source]¶ Returns the xy chromaticity coordinates from given CIE XYZ tristimulus values.
Parameters: - XYZ (array_like) – CIE XYZ tristimulus values.
- illuminant (array_like, optional) – Reference illuminant chromaticity coordinates.
Returns: xy chromaticity coordinates.
Return type: ndarray
Notes
Domain Scale - Reference Scale - 1 XYZ
[0, 1] [0, 1] References
Examples
>>> XYZ = np.array([0.20654008, 0.12197225, 0.05136952]) >>> XYZ_to_xy(XYZ) # doctest: +ELLIPSIS array([ 0.5436955..., 0.3210794...])