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.

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.

Page Links


Special Pages


Wikis

?

Render Time: 47ms

DB GetPage 6
Generate Html 12
SaveChanges (1) 8
Render Body 0
Render Sidebar 13