Difference between revisions of "love.graphics.polygon"
(redid part of edit lost to crash) |
(changed convex condition to simple because of concave hull algo in love) |
||
Line 3: | Line 3: | ||
Following the mode argument, this function can accept multiple numeric arguments or a single table of numeric arguments. In either case the arguments are interpreted as alternating x and y coordinates of the polygon's vertices. | Following the mode argument, this function can accept multiple numeric arguments or a single table of numeric arguments. In either case the arguments are interpreted as alternating x and y coordinates of the polygon's vertices. | ||
− | ''Note: when in '''fill''' mode, the polygon must be [http://en.wikipedia.org/wiki/ | + | ''Note: when in '''fill''' mode, the polygon must be [http://en.wikipedia.org/wiki/Simple_polygon simple] or rendering artifacts may occur.'' |
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === |
Revision as of 21:43, 21 June 2010
Draw a polygon.
Following the mode argument, this function can accept multiple numeric arguments or a single table of numeric arguments. In either case the arguments are interpreted as alternating x and y coordinates of the polygon's vertices.
Note: when in fill mode, the polygon must be simple or rendering artifacts may occur.
Contents
Function
Synopsis
love.graphics.polygon( mode, ... )
Arguments
Returns
Nothing.
Synopsis
love.graphics.polygon( mode, vertices )
Arguments
Returns
Nothing.