Garry's Mod Wiki

Revision Difference

Color#516743

List of all possible functions to manipulate colors. Colors are implemented in Lua thus <page>Global.type</page>(color) == "table" and <page>Global.TypeID</page>(color) == TYPE_TABLE. For type checking use <page>Global.IsColor</page>. Created by <page>Global.Color</page>, <page>Global.HSVToColor</page>, and <page>Global.HSLToColor</page>. <classfields>⤶ <fields>{{ClassField|number|r|The red component of the color.</fields>⤶ ⤶ </classfields>⤶ ⤶ ⤶ {{ClassFields⤶ |Fields=⤶ {{ClassField|number|r|The red component of the color.}}⤶ {{ClassField|number|g|The green component of the color.}} {{ClassField|number|b|The blue component of the color.}} {{ClassField|number|a|The alpha component of the color.}} }}