HSLSATURATION function

HSLSATURATION(Color) HSLSATURATION(Color)

Color

Color or { Color }

The color.

Returns

Number or { Number }

The saturation from the given color, ranging from 0 to 100 (inclusive).

Returns the saturation from the given color according to the Hue-Saturation-Lightness (HSL) and Hue-Saturation-Lightness-Alpha (HSLA) color models.

This function is Calcapp-specific.

Examples

HSLSATURATION(Color.Red)HSLSATURATION(Color,Red)

Returns 100, indicating that the default red color is fully saturated.

HSLSATURATION({ Color.Red, Color.Blue })HSLSATURATION({ Color,Red; Color,Blue })

Returns the array { 100, 100 }{ 100; 100 }, indicating that both the default red and blue colors are fully saturated.