sliceGrid
sliceGrid(
base,options):Texture<TextureSource<any>>[]
Defined in: renderer/src/spritesheet.ts:42
Slice a texture into frame Textures on a uniform grid.
Frame i is read at column i % columns, row floor(i / columns).
Without columns, the column count is derived from the texture width;
without count, a single full row is read.
Parameters
Section titled “Parameters”Texture
options
Section titled “options”Returns
Section titled “Returns”Texture<TextureSource<any>>[]