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.draw( sprite, x, y, angle )
Usage
love.graphics.draw( sprite, x, y, angle )
Arguments
spriteAn Image or Animation object.
xThe position on the x-axis.
yThe position on the y-axis.
angleThe angle of rotation (in degrees).
Returns
Nothing
Examples
Example 1: Draw a rotated image. image = love.graphics.newImage("image.png")
love.graphics.draw(image, 50, 50, 20)