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") } }}.
Properties
Section titled “Properties”size:
number
Defined in: pixi.ts:57
The tile’s side in pixels at scale 1. It covers one step of the world.
Methods
Section titled “Methods”draw()
Section titled “draw()”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.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Container