DColorCube.GetBaseRGB

From GMod Wiki

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



Examples

DescriptionCreate a DColorCube, and check its base color.
Used onNewerClient.png
Code
local colorcube= vgui.Create("DColorCube")
colorcube:SetBaseRGB(Color(0, 0, 255)) -- Set its base color to Blue
PrintTable(colorcube:GetBaseRGB())
Output
a	=	255
b	=	255
g	=	0
r	=	0


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox