from_hwba method

from_hwba

Returns a new Color with the requested hue, whiteness, blackness values.

Returns

A new instance of the Color class

def from_hwba(self, hue, whiteness, blackness, alpha):
    ...
ParameterTypeDescription
huefloatA float that represents the hue component of the color.
whitenessfloatA float that represents the whiteness component of the color.
blacknessfloatA float that represents the blackness component of the color.
alphafloatA float that represents the alpha component of the color.

See Also