Color/ToHSL

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Use interval notation)
Line 2: Line 2:
 
|Name=ToHSL
 
|Name=ToHSL
 
|Description=Converts a {{Struct|Color}} into HSL color space. This calls {{GlobalFunction|ColorToHSL}} internally.
 
|Description=Converts a {{Struct|Color}} into HSL color space. This calls {{GlobalFunction|ColorToHSL}} internally.
 
{{NextUpdate}}
 
 
|Realm=Shared and Menu
 
|Realm=Shared and Menu
 
|IsClass=Yes
 
|IsClass=Yes
Line 9: Line 7:
 
{{Ret
 
{{Ret
 
|type=number
 
|type=number
|desc=The hue in degrees [0, 360).
+
|desc=The hue in degrees <nowiki>[0, 360)</nowiki>.
 
}}
 
}}
 
{{Ret
 
{{Ret

Revision as of 16:42, 12 November 2019

 Color:ToHSL( )

Contents

Description

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

Returns

number

The hue in degrees [0, 360).

Returns

number

The saturation in the range [0, 1].

Returns

number

The lightness in the range [0, 1].
Personal tools
Navigation