surface.SetDrawColor

From Garry's Mod
Revision as of 11:17, 29 May 2016 by Bo98 (Talk | contribs)
Jump to: navigation, search
 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