API Reference › Sprite › Sprite.cell_span
method

Sprite.cell_span

Sprite.cell_span(sheet, col, row, cols, rows) -> int

Returns a sprite id for a sub-rect spanning cols x rows cells from (col, row) — for a sprite that covers more than one cell (a tall character, a wide object). Same as Sprite.cell but sized to the span.

← All symbols