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, s )
Usage
love.graphics.draws( image, x, y, cx, cy, w, h, angle, s )
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).
sThe scale factor.
Returns
Nothing
Examples
Example 1: Draw a 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, 0, 2) -- center crop (100x100 pixels) resized to be same size as original image