from_cmyka method

from_cmyka

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

Returns

A new instance of the Color class

def from_cmyka(self, cyan, magenta, yellow, key, alpha):
    ...
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.
alphafloatA float that represents the alpha component of the color.

See Also