LIGHTNESS function
LIGHTNESS(Color) LIGHTNESS(Color)
Color
Color or { Color }
The color.
Returns
Number or { Number }
The lightness from the given color, ranging from 0 to 100 (inclusive).
Returns the lightness 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
LIGHTNESS(Color.Red)LIGHTNESS(Color,Red)
Returns 50, indicating that the default red color has a lightness equaling 50.
LIGHTNESS({ Color.Red,
Color.Blue })LIGHTNESS({ Color,Red;
Color,Blue })
Returns the array { 50, 50 }{ 50; 50 }, indicating that both colors have a lightness equaling 50.