Panel.SetColor

From GMod Wiki

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



Examples

DescriptionSetting the color of a Label, using RGB.
Used onNewerClient.png
Code
local Label = vgui.Create("DLabel")
Label:SetText("Green Like Money")
Label:SetColor(Color(0,255,0))
 
OutputGreen Like Money


Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox