TextureGridOptions
graphics/texture.types.ts:35Describes how to slice a regular grid of equally-sized frames out of one image — the common layout for tilesets and animation strips. Consumed by Texture.grid, which walks the grid in row-major order (left to right, then top to bottom) and returns one Texture per cell.
The image is treated as a grid of columns × rows cells, each
frameWidth × frameHeight pixels, optionally inset from the image edge by
offsetX/offsetY and separated by spacingX/spacingY gutters.
{ columns: number; count?: number; frameHeight: number; frameWidth: number; offsetX?: number; offsetY?: number; rows: number; spacingX?: number; spacingY?: number }