love.graphics.draws( image, x, y, cx, cy, w, h, angle, sx, sy, ox, oy )
Usage
love.graphics.draws( image, x, y, cx, cy, w, h, angle, sx, sy, ox, oy )
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.
oxThe x-coordinate of the center.
oyThe y-coordinate of the center.
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, 20, 2, 2, 0, 0) -- center crop (100x100 pixels) scaled to twice the size and rotated around the top left corner