Skip to content

SheetFrameSource

Defined in: renderer/src/spritesheet.ts:195

A sprite sheet sliced on a uniform grid. Without count/columns it reads the single top row (a horizontal strip); count extends the slice across rows, wrapping every columns frames. Offsets and gaps follow TextureSliceOptions.

optional columns?: number

Defined in: renderer/src/public-types.ts:138

TextureSliceOptions.columns


optional count?: number

Defined in: renderer/src/public-types.ts:139

TextureSliceOptions.count


optional frameHeight?: number

Defined in: renderer/src/public-types.ts:135

TextureSliceOptions.frameHeight


frameWidth: number

Defined in: renderer/src/public-types.ts:134

TextureSliceOptions.frameWidth


optional gapX?: number

Defined in: renderer/src/public-types.ts:140

TextureSliceOptions.gapX


optional gapY?: number

Defined in: renderer/src/public-types.ts:141

TextureSliceOptions.gapY


sheet: TextureRef

Defined in: renderer/src/spritesheet.ts:201

The sheet to slice: an asset key, or the texture handle a texture(...) declaration returns. Both resolve from the cache a SpriteComponent texture resolves from.


optional startX?: number

Defined in: renderer/src/public-types.ts:136

TextureSliceOptions.startX


optional startY?: number

Defined in: renderer/src/public-types.ts:137

TextureSliceOptions.startY

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.