colour.CMY_to_CMYK

colour.CMY_to_CMYK(CMY)[source]

Converts from CMY colourspace to CMYK colourspace.

Parameters:CMY (array_like) – CMY colourspace array.
Returns:CMYK array.
Return type:ndarray

Notes

Domain Scale - Reference Scale - 1
CMY [0, 1] [0, 1]
Range Scale - Reference Scale - 1
CMYK [0, 1] [0, 1]

References

[EasyRGBo]

Examples

>>> CMY = np.array([0.54379481, 0.96918929, 0.95908048])
>>> CMY_to_CMYK(CMY)  # doctest: +ELLIPSIS
array([ 0.        ,  0.9324630...,  0.9103045...,  0.5437948...])