Difference between revisions of "love.graphics.polygon"

m
m (added external link to Wikipedia regarding the term convex)
Line 1: Line 1:
 
Draw a polygon.
 
Draw a polygon.
  
''Note: when in '''fill''' mode, the polygon must be convex or rendering artifacts may occur.''
+
''Note: when in '''fill''' mode, the polygon must be [http://en.wikipedia.org/wiki/Convex_and_concave_polygons convex] or rendering artifacts may occur.''
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===

Revision as of 06:03, 11 March 2010

Draw a polygon.

Note: when in fill mode, the polygon must be convex or rendering artifacts may occur.

Function

Synopsis

love.graphics.polygon( mode, ... )

Arguments

DrawMode mode
How to draw the polygon.
numbers ...
The vertices of the polygon.

Returns

Nothing.

See Also