The OpenD Programming Language

toHsl

Converts an RGB color into an HSL triplet. useWeightedLightness will try to get a better value for luminosity for the human eye, which is more sensitive to green than red and more to red than blue. If it is false, it just does average of the rgb.

@safe nothrow pure @trusted @nogc
double[3]
toHsl
(,
bool useWeightedLightness = false
)

Meta