---
id: sprite-sheet
name: Sprite.sheet
category: sprite
kind: namespace-method
tokens: Sprite.sheet
sig: Sprite.sheet(path, cellw, cellh) -> int
tip: Load a spritesheet and remember its cell grid; returns a sheet handle.
order: 1
ns: Sprite
member: sheet
---
Loads the PNG at path and records that its cells are cellw x cellh px, returning a sheet handle. Address its cells with Sprite.cell / Sprite.cell_span. The whole image is kept (variable size), so cells are not restricted to the 16x16 sprite table.