Garry's Mod Wiki

Color:ToHSL

Description

Converts a Color into HSL color space. This calls ColorToHSL internally.

Returns

1 number
The hue in degrees [0, 360).
2 number
The saturation in the range [0, 1].
3 number
The lightness in the range [0, 1].