from_hwb method

from_hwb

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

Returns

A new instance of the Color class

def from_hwb(self, hue, whiteness, blackness):
    ...
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.

See Also