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, s )
Usage
love.graphics.draw( sprite, x, y, angle, s )
Arguments
spriteAn Image or Animation object.
xThe position on the x-axis.
yThe position on the y-axis.
angleThe angle of rotation (in degrees).
sThe scale factor.
Returns
Nothing
Examples
Example 1: Draw an image rotated and scaled. image = love.graphics.newImage("image.png")
love.graphics.draw(image, 50, 50, 20, 1) -- rotation, normal scale
love.graphics.draw(image, 50, 50, 0, 2) -- normal rotation, twice as big
love.graphics.draw(image, 50, 50, 20, 0.5) -- rotation, half scale