from_lch method

from_lch

Returns a new Color with the requested luminance, chroma, hue values.

Returns

A new instance of the Color class

def from_lch(self, luminance, chroma, hue):
    ...
ParameterTypeDescription
luminancefloatA float that represents the luminance component of the color.
chromafloatA float that represents the chroma component of the color.
huefloatA float that represents the hue component of the color.

See Also