Skip to main content

Function: cmyk()

function cmyk(
c,
m,
y,
k): CmykColor;

Creates a CMYK color object using normalized channel values from 0 to 1.

Parameters

ParameterTypeDescription
cnumberCyan channel value from 0 to 1.
mnumberMagenta channel value from 0 to 1.
ynumberYellow channel value from 0 to 1.
knumberKey/black channel value from 0 to 1.

Returns

CmykColor

The CMYK color object.