HSL

Purpose:

Calculates a color value in the HSL color space (Hue, Saturation, Lightness)

Parameter:

Number         Hue [0-360] (0°=red, 120°=green, 240°=blue)

Number         Saturation [0-1]

Number         Lightness [0-1] (0=no lightness, 1=full lightness)

Return value:

Number

Example:

HSL (0,0.5,1)   Result: Green with half-saturation and full lightness