love.graphics.quad( type, x1, y1, x2, y2, x3, y3, x4, y4 )
Note: When drawing a filled quadrilateral, the coordinates must be passed in a counter-clockwise order.
Usage
love.graphics.quad( type, x1, y1, x2, y2, x3, y3, x4, y4 )
Arguments
typeThe type of quad (outline/filled).
x1First x-coordinate.
y1First y-coordinate.
x2Second x-coordinate.
y2Second y-coordinate.
x3Third x-coordinate.
y3Third y-coordinate.
x4Fourth x-coordinate.
y4Fourht y-coordinate.
Returns
Nothing
Examples
Example 1: Draw two quads.
love.graphics.quad(love.draw_line, 200,200, 200,400, 500,300, 500,100) -- outline
love.graphics.quad(love.draw_fill, 200,200, 200,400, 500,300, 500,100) -- filled