Garry's Mod Wiki

Garry's Mod Wiki

  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.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...