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