colour.RGB_to_CMY#

colour.RGB_to_CMY(RGB: ArrayLike) NDArrayFloat[source]#

Convert from RGB colourspace to CMY colourspace.

Parameters:

RGB (ArrayLike) – RGB colourspace array.

Returns:

CMY array.

Return type:

numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

RGB

[0, 1]

[0, 1]

Range

Scale - Reference

Scale - 1

CMY

[0, 1]

[0, 1]

References

[EasyRGBf]

Examples

>>> RGB = np.array([0.45620519, 0.03081071, 0.04091952])
>>> RGB_to_CMY(RGB)  
array([ 0.5437948...,  0.9691892...,  0.9590804...])