colour.uv_to_UCS#

colour.uv_to_UCS(uv: ArrayLike, V: Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 1] = 1) Annotated[ndarray[tuple[Any, ...], dtype[float16 | float32 | float64]], 1][source]#

Convert from uv chromaticity coordinates to CIE 1960 UCS colourspace.

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

  • V (Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 1]) – 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

Notes

Domain

Scale - Reference

Scale - 1

V

1

1

Range

Scale - Reference

Scale - 1

UVW

1

1

References

[Wikipedia08b]

Examples

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