sliceSheet
sliceSheet(
source,frameWidth,frameHeight?):Texture<TextureSource<any>>[]
Defined in: renderer/src/spritesheet.ts:15
Slice a single-row horizontal spritesheet into individual frame Textures.
Only reads the top row of the image (y = 0). For multi-row sheets or
non-uniform frame layouts, use PixiJS’s Spritesheet class with a JSON
atlas descriptor (TexturePacker / Aseprite JSON export format) instead.
Parameters
Section titled “Parameters”source
Section titled “source”string | Texture<TextureSource<any>>
A PixiJS Texture or asset path string.
frameWidth
Section titled “frameWidth”number
Width of each frame in pixels.
frameHeight?
Section titled “frameHeight?”number
Height of each frame (defaults to frameWidth for square frames).
Returns
Section titled “Returns”Texture<TextureSource<any>>[]