Category:Color

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
m (Note Lua implementation)
m
 
Line 1: Line 1:
List of all possible functions to manipulate colors. Colors are implemented in Lua thus {{GlobalFunction|type}}(color) == "table" and {{GlobalFunction|TypeID}}(color) == TYPE_TABLE.
+
List of all possible functions to manipulate colors. Colors are implemented in Lua thus {{GlobalFunction|type}}(color) == "table" and {{GlobalFunction|TypeID}}(color) == TYPE_TABLE. For type checking use {{GlobalFunction|IsColor}}.
  
 
Created by {{GlobalFunction|Color}}, {{GlobalFunction|HSVToColor}}, and {{GlobalFunction|HSLToColor}}.
 
Created by {{GlobalFunction|Color}}, {{GlobalFunction|HSVToColor}}, and {{GlobalFunction|HSLToColor}}.

Latest revision as of 16:51, 9 October 2019

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.

Fields

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.

Pages in category "Color"

The following 6 pages are in this category, out of 6 total.

Personal tools
Navigation