Color
List of all possible functions to manipulate colors.
Colors are implemented in Lua thus type(color) == "table" and TypeID(color) == TYPE_TABLE.
For type checking use IsColor.
Created by Color, HSVToColor, and HSLToColor.
Type | Name | Description |
---|---|---|
number | r | The red component of the color. |
number | g | The green component of the color. |
number | b | The blue component of the color. |
number | a | The alpha component of the color. |
Methods
Color:SetUnpacked( number r, number g, number b, number a )
Sets the red, green, blue, and alpha of the color.
number, number, number Color:ToHSL()
Converts a Color into HSL color space. This calls ColorToHSL internally.
number, number, number Color:ToHSV()
Converts a Color into HSV color space. This calls ColorToHSV internally.