surface.SetDrawColor
From GMod Wiki
Function | |
Syntax |
surface.SetDrawColor( Number R, Number G, Number B, Number Alpha or Color Color Object ) Where is this used? |
Description: | |
Sets the color for all textured and non textured rects that are drawn until it is set again. | |
Returns: | nil |
Part of Library: | surface |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Surface.SetDrawColor]Surface.SetDrawColor [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | N/A | ||
---|---|---|---|
Used on | |||
Code |
| ||
Output | N/A |
Additional Notes
- R - The amount of Red (0-255)
- G - The amount of Green (0-255)
- B - The amount of Blue (0-255)
- Alpha - How transparent the rect is (0-255)
Note that all rects that are drawn in the function SetDrawColor is called in will be this color until it is set again.
Alternatively surface.SetDrawColor( Color( r, g, b, a ) ) also works.