DColorCube.SetBaseRGB

From GMod Wiki

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



Examples

DescriptionSet the base color of a DColorCube to red.
Used onNewerClient.png
Code
local colorcube= vgui.Create("DColorCube")
colorcube:SetBaseRGB(Color(255, 0, 0)) -- Red
OutputDColorCube.PNG


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox