sliceSheet
sliceSheet(
source,frameWidth,frameHeight?):Texture<TextureSource<any>>[]
Defined in: renderer/src/spritesheet.ts:166
Slice a single-row horizontal spritesheet into individual frame Textures.
Only reads the top row of the image (y = 0). For multi-row grid sheets,
use a SheetFrameSource with count/columns (or call
sliceGrid directly); for non-uniform frame layouts, use PixiJS’s
Spritesheet class with a JSON atlas descriptor (TexturePacker / Aseprite
JSON export format).
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>>[]
Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/renderer.md.