from_oklab method

from_oklab

Returns a new Color with the requested lightness, A, B values for OKLAB model.

Returns

A new instance of the Color class

def from_oklab(self, lightness, a, b):
    ...
ParameterTypeDescription
lightnessfloatA float that represents the lightness component of the color.
afloatA float that represents the A component of the color.
bfloatA float that represents the B component of the color.

See Also