love.graphics.draws( image, x, y, cx, cy, w, h, angle, sx, sy )
Usage
love.graphics.draws( image, x, y, cx, cy, w, h, angle, sx, sy )
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).
sxThe scale factor along the x-axis.
syThe scale factor along the y-axis.
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, 0, 0, 50, 50, 20, 2, 1) -- top left corner (50x50 pixels) made wide and rotated
love.graphics.draws(image, 50, 50, 0, 100, 200, 100, 0, 1, 2) -- bottom half made tall
love.graphics.draws(image, 50, 50, 50, 50, 100, 100, 0, 0.5, 0.5) -- center crop (100x100 pixels) scaled down by half