Color To HSL
The hue, saturation and lightness of a color.
Node id color/to-hsl
The Color To HSL node outputs the hue h, saturation s and lightness l
of color, each from 0 to 1, as used by
Color From HSL.
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| color | Color | { r: 0, g: 0, b: 0, a: 1 } |
Outputs
| Name | Type | Notes |
|---|---|---|
| h | number | |
| s | number | |
| l | number |
Behaviour
- Grays. A color with no hue (black, white, grays) gives
h= 0 ands= 0. - No opacity. The color's opacity is not an output: read it with Break
Color (
a). - Default. An unset
coloris black: 0, 0, 0. - Shifting a color. Add to
hand feed the three values back into Color From HSL to turn a color around the color wheel.
Related nodes
- Color From HSL: the reverse.
- Color To Hex: the color as text.