from_hsla method

from_hsla

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

Returns

A new instance of the Color class

def from_hsla(self, hue, saturation, lightness, alpha):
    ...
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.
alphafloatA float that represents the alpha component of the color.

See Also