colour.uv_to_UCS#

colour.uv_to_UCS(uv: ArrayLike, V: NDArrayFloat = np.array(1)) NDArrayFloat[source]#

Return the CIE 1960 UCS \(UVW\) colourspace array from given uv chromaticity coordinates.

Parameters:
  • uv (ArrayLike) – uv chromaticity coordinates.

  • V (NDArrayFloat) – Optional \(V\) luminance value used to construct the CIE 1960 UCS \(UVW\) colourspace array, the default \(V\) luminance is set to 1.

Returns:

CIE 1960 UCS \(UVW\) colourspace array.

Return type:

numpy.ndarray

References

[Wikipedia08b]

Examples

>>> import numpy as np
>>> uv = np.array([0.37720213, 0.33413508])
>>> uv_to_UCS(uv)  
array([ 1.1288911...,  1.        ,  0.8639104...])