colour.xyY_to_xy

colour.xyY_to_xy(xyY)[source]

Converts from CIE xyY colourspace to CIE xy chromaticity coordinates.

xyY argument with last dimension being equal to 2 will be assumed to be a CIE xy chromaticity coordinates argument and will be returned directly by the definition.

Parameters:xyY (array_like) – CIE xyY colourspace array or CIE xy chromaticity coordinates.
Returns:CIE xy chromaticity coordinates.
Return type:ndarray

Notes

Domain Scale - Reference Scale - 1
xyY [0, 1] [0, 1]

References

[Wikipedia2005]

Examples

>>> xyY = np.array([0.54369557, 0.32107944, 0.12197225])
>>> xyY_to_xy(xyY)  # doctest: +ELLIPSIS
array([ 0.54369557...,  0.32107944...])
>>> xy = np.array([0.54369557, 0.32107944])
>>> xyY_to_xy(xy)  # doctest: +ELLIPSIS
array([ 0.54369557...,  0.32107944...])