surface.SetDrawColor

From GMod Wiki

Jump to: navigation, search
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: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Surface.SetDrawColor]Surface.SetDrawColor [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionN/A
Used onNewerMissing.png
Code
LuaIco3.pngThis page needs an example to demonstrate the item detailed on this page. See how to make one here.
See more articles that need examples here.
OutputN/A


Additional Notes

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.

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox