scale_luminance
- scale_luminance(color, scale=1, space='hcl')[source]
Scale the luminance channel of a color.
- Parameters:
color (
color-spec) – The color. Sanitized withto_rgba.scale (
float, optional) – The luminance channel is multiplied by this value.space (
{'hcl', 'hpl', 'hsl', 'hsv'}, optional) – The hue-saturation-luminance-like colorspace used to transform the color. Default is the strictly perceptually uniform colorspace'hcl'.
- Returns:
color (
str) – An 8-digit HEX string indicating the red, green, blue, and alpha channel values.
See also
set_hue,set_saturation,set_luminance,set_alpha,shift_hue,scale_saturation