Wiki
Clone wikiLove2D Light and Shadow Engine / love.light.newImage
Object
Abstract
image = love.light.newImage(world, image, x, y, width, height, offsetX, offsetY)
Arguments
- World world
- love.image image
- float x (default: 0)
- float y (default: 0)
- float width (default: image width)
- float height (default: image height)
- float offsetX (default: width / 2)
- float offsetY (default: height / 2)
Return
- Image image
Description
Create a new image shadow object. The position and dimension of the shadow rectangle can be changed separately.
Updated