HSL function

HSL(Hue, Saturation, Lightness) HSL(Hue; Saturation; Lightness)

Hue

Number or { Number }

The hue. Must be between 0 and 360 (inclusive).

Saturation

Number or { Number }

The saturation. Must be between 0 and 100 (inclusive).

Lightness

Number or { Number }

The lightness. Must be between 0 and 100 (inclusive).

Returns

Color or { Color }

A color based on the given color components.

Returns a color based on the given color components according to the Hue-Saturation-Lightness (HSL) color model.

This function is Calcapp-specific.

Examples

HSL(0, 100, 50)HSL(0; 100; 50)

Returns a color corresponding to Color.RedColor,Red.

HSL(0, 100, { 100, 0 })HSL(0; 100; { 100; 0 })

Returns the array { Color.Red, Color.Black }{ Color,Red; Color,Black }. When the third parameter, the lightness, is set to 0, the returned color is always black.