Version 0.3.2
LÖVE Documentation
OverviewLicenseCreditsInstallingGetting started
Devices
love.graphicslove.audiolove.keyboardlove.mouselove.filesystemlove.timerlove.system
Types
AnimationColorFontFileImageMusicParticleSystemSound
Callbacks
loadupdatedrawmousepressedmousereleasedkeypressedkeyreleased
Miscellaneous
ConstantsConfig filesKeyboard shortcuts
Function
love.graphics.rectangle( x, y, w, h )
Usage
love.graphics.rectangle( x, y, w, h )
Arguments
xX-coordinate of top-left corner.
yY-coordinate of top-left corder.
wWidth of the rectangle.
hHeight of the rectangle.
Returns
Nothing
Examples
Example 1: Draw a rectangle. function draw()
   -- Draws a 100px wide, 200px high rectangle at (50, 50).
   love.graphics.rectangle(love.draw_fill, 50, 50, 100, 200)
end