Version 0.2.0
LÖVE Documentation
OverviewLicenceCreditsGetting started
Devices
love.objectslove.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timer
Types
AnimationColorFontImageMusicSound
Callbacks
loadupdatedrawmousepressedmousereleasedkeypressedkeyreleased
Miscellaneous
ConstantsConfig filesKeyboard shortcuts
Function
love.graphics:fillQuad( xpos, ypos, x1, y1, x2, y2, x3, y3, x4, y4 )
The xpos and ypos coordinates denote the absolute position of the shape on the screen whereas the other coordinates are relative to that position. WARNING: The points must be set in a counter-clockwise order or the shape will not be drawn.
Usage
love.graphics:fillQuad( xpos, ypos, x1, y1, x2, y2, x3, y3, x4, y4 )
Arguments
xposThe position on the x-axis.
yposThe position on the y-axis.
x1The first relative x-coordinate.
y1The first relative y-coordinate.
x2The second relative x-coordinate.
y2The second relative y-coordinate.
x3The third relative x-coordinate.
y3The third relative y-coordinate.
x4The fourth relative x-coordinate.
y4The fourth relative y-coordinate.
Returns
Nothing
Examples
Example 1: Draws a rectangle. love.graphics:fillQuad(100, 100, -50, 50, -50, -50, 50, -50, 50, 50);