G.Color

From GMod Wiki

Jump to: navigation, search
Function
Syntax Color( integer red, integer green, integer blue, integer alpha )
Where is this used?
Description:
Returns a color structure. Red, green, and blue describe the color, and alpha describes the opacity.
Returns: Color
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.Color]G.Color [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCreate a half-visible yellow color.
Used onNewerShared.png
Code
local transYellow=Color( 255, 255, 0, 127 )
OutputColor


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox