colour.RGB_to_CMY

colour.RGB_to_CMY(RGB)[source]

Converts from RGB colourspace to CMY colourspace.

Parameters

RGB (array_like) – RGB colourspace array.

Returns

CMY array.

Return type

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...])