get_brightness method

get_brightness(self)

Gets the hue-saturation-lightness (HSL) lightness value for this color.

Returns

The lightness of this color. The lightness ranges from 0.0 through 1.0, where 0.0 represents black and 1.0 represents white.

def get_brightness(self):
    ...

See Also