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.draws( image, x, y, cx, cy, w, h, angle )
Usage
love.graphics.draws( image, x, y, cx, cy, w, h, angle )
Arguments
imageAn Image object.
xThe position on the x-axis.
yThe position on the y-axis.
cxThe x-position of the image section (top-left).
cyThe y-position of the image section (top-left).
wThe width of the image section.
hThe height of the image section.
angleThe angle of rotation (in degrees).
Returns
Nothing
Examples
Example 1: Draw a rotated subsprite of an Image. image = love.graphics.newImage("image.png") -- this image is 200x200 pixels big
love.graphics.draws(image, 50, 50, 50, 50, 100, 100, 20) -- center crop (100x100 pixels) rotated