surface/DrawCircle

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
Line 22: Line 22:
 
}}
 
}}
 
{{Arg
 
{{Arg
|type=table
+
|type=number
|name=color
+
|name=r
|desc=The color of the circle. Uses the {{Struct|Color}}.
+
|desc=The red value of the color to draw the circle with, or a {{Struct|Color}}.
 +
}}
 +
{{Arg
 +
|type=number
 +
|name=g
 +
|desc=The green value of the color to draw the circle with. Unused if a {{Struct|Color}} was given.
 +
}}
 +
{{Arg
 +
|type=number
 +
|name=b
 +
|desc=The blue value of the color to draw the circle with. Unused if a {{Struct|Color}} was given.
 +
}}
 +
{{Arg
 +
|type=number
 +
|name=a
 +
|desc=The alpha value of the color to draw the circle with. Unused if a {{Struct|Color}} was given.
 +
|default=255
 
}}
 
}}

Revision as of 11:18, 29 May 2016

 surface.DrawCircle( )

Contents

Description

Draws a hollow circle, made of dots. For a filled circle, see examples for surface.DrawPoly.

Arguments

number originX

The center x coordinate.

Arguments

number originY

The center y coordinate.

Arguments

number radius

The radius of the circle.

Arguments

number r

The red value of the color to draw the circle with, or a Color structure.

Arguments

number g

The green value of the color to draw the circle with. Unused if a Color structure was given.

Arguments

number b

The blue value of the color to draw the circle with. Unused if a Color structure was given.

Arguments

number a=255

The alpha value of the color to draw the circle with. Unused if a Color structure was given.
Personal tools
Navigation