from_cmyk method

from_cmyk

Returns a new Color with the requested cyan, magenta, yellow, key (black) values.

Returns

A new instance of the Color class

def from_cmyk(self, cyan, magenta, yellow, key):
    ...
ParameterTypeDescription
cyanfloatA float that represents the cyan component of the color.
magentafloatA float that represents the magenta component of the color.
yellowfloatA float that represents the yellow component of the color.
keyfloatA float that represents the key component of the color.

See Also