Panel.SetColor
From GMod Wiki
(Redirected from DLabel.SetColor)
| Function | |
| Syntax | Panel.SetColor( Color Color ) |
| Description: | |
| Sets the color of the panel | |
| Returns: | nil |
| In Object: | Panel |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Panel.SetColor]Panel.SetColor [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Setting the color of a Label, using RGB. |
|---|---|
| Used on | |
| Code | local Label = vgui.Create("DLabel") Label:SetText("Green Like Money") Label:SetColor(Color(0,255,0)) |
| Output | Green Like Money |