Spritesheet:image

Returns the love.Image containing the texture data for this spritesheet.

Usage

spritesheet:image()

Returns

Name Type Description
image love.Image Image containing the texture data for this spritesheet.

Examples

local spritesheet = crystal.assets.get("assets/sprites/hero.json");
print(spritesheet:image():getDimensions());

This site uses Just the Docs, a documentation theme for Jekyll.