DColorCube.GetRGB

From GMod Wiki

Jump to: navigation, search
Function
Syntax DColorCube:GetRGB( )
Description:
Returns the currently selected color of a DColorCube.
Returns: Color RGB Value
In Object: DColorCube
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DColorCube.GetRGB]DColorCube.GetRGB [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionCreates a DColorCube and prints its RGB value.
Used onNewerClient.png
Code
local colorcube = vgui.Create("DColorCube")
PrintTable(colorcube:GetRGB())
OutputThe default value of the DColorCube:
a	=	255
b	=	102
g	=	127
r	=	63


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox