For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Class PatternAtlas
Index
Constructors
Methods
Constructors
constructor
Parameters
- imageManager: ImageManager
Returns PatternAtlas
Methods
bind
Parameters
- context: Context
Returns void
destroy
Returns void
getPattern
Parameters
- id: string
Returns ImagePosition
the position of the pattern within the atlas, or
nullif there is no such image
getPixelSize
Returns { height: number; width: number }
A texture atlas of the pattern images that are drawn without a tile's own ImageAtlas, i.e.
background-pattern. Entries are packed on demand and re-packed whenever one of them is added or changes, which is rare enough for the repacking cost not to matter.