colour.xyY_to_xy

colour.xyY_to_xy(xyY)[source]

Converts from CIE xyY colourspace to xy chromaticity coordinates.

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

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

Notes

  • Input CIE xyY colourspace array is in domain [0, 1].
  • Output xy chromaticity coordinates are in range [0, 1].

References

Examples

>>> xyY = np.array([0.26414772, 0.37770001, 0.10080000])
>>> xyY_to_xy(xyY)  
array([ 0.2641477...,  0.3777000...])
>>> xy = np.array([0.26414772, 0.37770001])
>>> xyY_to_xy(xy)  
array([ 0.2641477...,  0.3777000...])