Skip to content

GridTile

Defined in: pixi.ts:55

A grid tile: the pattern that repeats behind the scene, drawn by you. export default defineGridTile({ size: 64, draw(kit) { ... } }) in the module you hand the view as background={{ grid: { tile: () => import("./my-grid-tile") } }}.

size: number

Defined in: pixi.ts:57

The tile’s side in pixels at scale 1. It covers one step of the world.

draw(kit): Container

Defined in: pixi.ts:60

Draws one tile within 0..size on both axes. Draw in white or greys: the grid’s color tints it, and its alpha fades it. Called once, when the tile loads.

PixiKit

Container