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
Image:setCenter( x, y )
For instance, a 128x64 image, will have a default center at <64,32> (the actual center). If you want the image to rotate around its top-left corner, you set the center to <0,0>.
Usage
Image:setCenter( x, y )
Arguments
xThe position of the center along the x-axis.
yThe position of the center along the y-axis.
Returns
Nothing