Garry's Mod Wiki

HSLToColor

  table HSLToColor( number hue, number saturation, number value )

Description

Converts a color from HSL color space into RGB color space and returns a Color.

The returned color will not have the color metatable.

Issue Tracker: 2407

Arguments

1 number hue
The hue in degrees from 0-360.
2 number saturation
The saturation from 0-1.
3 number value
The lightness from 0-1.

Returns

1 table
The Color created from the HSL color space.