DAlphaBar.SetImageColor
From GMod Wiki
| Function | |
| Syntax | DAlphaBar:SetImageColor( Color color ) |
| Description: | |
| Sets the background colour of a DAlphaBar. | |
| Returns: | nil |
| In Object: | DAlphaBar |
| Realm: |
|
| BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=DAlphaBar.SetImageColor]DAlphaBar.SetImageColor [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
| Description | Sets the background colour of a DAlphaBar to red. |
|---|---|
| Used on | |
| Code | //Code creating the bar bar:SetImageColor(Color(255, 0, 0, 255)) |
| Output | ![]() |
Additional Notes
- You cannot change the alpha of the background colour, it will be ignored.
