HSLToColor

From Garry's Mod
Jump to: navigation, search
 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