Global/HSLToColor

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Func |Description=Converts a color from [https://en.wikipedia.org/wiki/HSL_and_HSV HSL color space] into RGB color space and returns a {{Struct|Color}}. {{Bug|Issue=2407|Th...")
 
 
Line 3: Line 3:
  
 
{{Bug|Issue=2407|The returned color will not have the color metatable.}}
 
{{Bug|Issue=2407|The returned color will not have the color metatable.}}
{{NextUpdate}}
 
 
|Realm=Shared and Menu
 
|Realm=Shared and Menu
 
|IsClass=No
 
|IsClass=No

Latest revision as of 16:48, 12 November 2019

 HSLToColor( )

Contents

Description

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

BUG

The returned color will not have the color metatable.

Issue Tracker: #2407

Arguments

number hue

The hue in degrees from 0-360.

Arguments

number saturation

The saturation from 0-1.

Arguments

number value

The lightness from 0-1.

Returns

table

The Color structure created from the HSL color space.
Personal tools
Navigation