colour.RGB_to_CMY#

colour.RGB_to_CMY(RGB: Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 1]) Annotated[ndarray[tuple[Any, ...], dtype[float16 | float32 | float64]], 1][source]#

Convert from RGB colourspace to CMY colourspace.

Parameters:

RGB (Annotated[_Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], 1]) – RGB colourspace array.

Returns:

CMY array.

Return type:

numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

RGB

1

1

Range

Scale - Reference

Scale - 1

CMY

1

1

References

[EasyRGBf]

Examples

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