shift_hue¶
- shift_hue(color, shift=0, space='hcl')[source]¶
Shift the hue channel of a color.
- Parameters
color (color-spec) – The color. Sanitized with
to_rgba
.shift (float, optoinal) – The HCL hue channel is offset by this value.
space ({‘hcl’, ‘hpl’, ‘hsl’, ‘hsv’}, optional) – The hue-saturation-luminance-like colorspace used to transform the color. Default is the perceptually uniform colorspace
'hcl'
.
- Returns
color (str) – A HEX string.
See also
set_hue
,set_saturation
,set_luminance
,set_alpha
,scale_saturation
,scale_luminance