DColorCube.SetColor

From GMod Wiki

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



Examples

DescriptionSet the color of a DColorCube to blue.
Used onNewerClient.png
Code
local colorcube = vgui.Create("DColorCube")
colorcube:SetColor(Color(0, 0, 255))
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox