multicolorfits.rgb_to_cmyk#

multicolorfits.rgb_to_cmyk(rgb)[source]#

Vectorized sRGB -> CMYK conversion (standard, no UCR/GCR).

Parameters:

rgb (numpy.ndarray) – Array with last axis of length 3, values in [0, 1].

Returns:

numpy.ndarray – CMYK array of the same shape with last axis length 4, values in [0, 1]. White RGB -> (0,0,0,0); black RGB -> (0,0,0,1).