love.graphics.draws( image, x, y, cx, cy, w, h )
Usage
love.graphics.draws( image, x, y, cx, cy, w, h )
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.
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) -- top left corner (50x50 pixels)
love.graphics.draws(image, 50, 50, 0, 100, 200, 100) -- bottom half
love.graphics.draws(image, 50, 50, 50, 50, 100, 100) -- center crop (100x100 pixels)