colour.CMY_to_CMYK#

colour.CMY_to_CMYK(CMY: 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 CMY colourspace to CMYK colourspace.

Parameters:

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

Returns:

CMYK array.

Return type:

numpy.ndarray

Notes

Domain

Scale - Reference

Scale - 1

CMY

1

1

Range

Scale - Reference

Scale - 1

CMYK

1

1

References

[EasyRGBb]

Examples

>>> CMY = np.array([0.54379481, 0.96918929, 0.95908048])
>>> CMY_to_CMYK(CMY)
array([ 0.        ,  0.9324630...,  0.9103045...,  0.5437948...])