Global/HSLToColor

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
Code gs (Talk | contribs)
(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...")
Newer edit →

Revision as of 09:27, 4 October 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

Next Update Change

This feature is only available in the next update.

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