from_hsl method

from_hsl

Returns a new Color with the requested hue, saturation, saturation values.

Returns

A new instance of the Color class

def from_hsl(self, hue, saturation, lightness):
    ...
ParameterTypeDescription
huefloatA float that represents the hue component of the color.
saturationfloatA float that represents the saturation component of the color.
lightnessfloatA float that represents the lightness component of the color.

See Also