-
-
Notifications
You must be signed in to change notification settings - Fork 18
color_from_hsl
Vašek edited this page Feb 10, 2019
·
2 revisions
Returns color from the given HSL values
color_from_hsl(h, s, l)
Argument | Description |
---|---|
float h |
Hue of the given color |
float s |
Saturation of the given color |
float l |
lightness of the given color |
Returns: Color
HSL color values are specified with hue, saturation, and lightness. This function returns the color in the standard Color format from the given HSL values.
Color col = color_from_hsl(0, 100, 50);
This function will set col
to 255 0 0 255, which is a red.
Back to Color And Alpha