colour.xy_to_CCT¶
-
colour.
xy_to_CCT
(xy, method='McCamy 1992')[source]¶ Returns the correlated colour temperature \(T_{cp}\) from given CIE XYZ tristimulus values xy chromaticity coordinates using given method.
Parameters: - xy (array_like) – xy chromaticity coordinates.
- method (unicode, optional) – {‘McCamy 1992’, ‘Hernandez 1999’}, Computation method.
Returns: Correlated colour temperature \(T_{cp}\).
Return type: numeric or ndarray
References