surface/SetDrawColor

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Undo revision 20629 by Robotboy655 (talk))
m
Line 14: Line 14:
 
|type=number
 
|type=number
 
|name=g
 
|name=g
|desc=The green value of color
+
|desc=The green value of color. Unused if a {{Struct|Color}} was given.
 
}}
 
}}
 
{{Arg
 
{{Arg
 
|type=number
 
|type=number
 
|name=b
 
|name=b
|desc=The blue value of color
+
|desc=The blue value of color. Unused if a {{Struct|Color}} was given.
 
}}
 
}}
 
{{Arg
 
{{Arg
 
|type=number
 
|type=number
 
|name=a
 
|name=a
|desc=The alpha value of color
+
|desc=The alpha value of color. Unused if a {{Struct|Color}} was given.
 
|default=255
 
|default=255
 
}}
 
}}

Revision as of 11:17, 29 May 2016

 surface.SetDrawColor( )

Contents

Description

Set the color of any future shapes to be drawn, can be set by either using r, g, b, a as separate values or by a Color structure. Using a color structure is not recommended to be created procedurally.

Arguments

number r

The red value of color, or a Color structure.

Arguments

number g

The green value of color. Unused if a Color structure was given.

Arguments

number b

The blue value of color. Unused if a Color structure was given.

Arguments

number a=255

The alpha value of color. Unused if a Color structure was given.
Personal tools
Navigation