Skip to content

color_from_hsl

Vašek edited this page Feb 10, 2019 · 2 revisions

color_from_hsl

Returns color from the given HSL values

Syntax:

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

Description:

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.

Example:

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

Clone this wiki locally