Algosim documentation: hsl

hsl

Encodes a colour using HSL (hue, saturation, lightness) coordinates.

Syntax

Description

hsl(h, s, l) is the colour object corresponding to the colour with HSL (hue, saturation, lightness) coordinates (h, s, l). The hue is a real number mod 360 while both saturation and lightness must belong to [0, 1].

Examples

hsl(43, 0.744, 0.49)
rgba(0.855, 0.648, 0.125, 1.000) (#DAA520, goldenrod)

See also