1681-engine / pixel / paintLifeArt
Function: paintLifeArt() ​
ts
function paintLifeArt(
textures,
colors?,
prefix?
): LifeArt;Defined in: src/pixel/lifeArt.ts:181
Paints the life's art under prefix (default 'life_') and returns its keys. A key already registered is kept, so calling it again (every map) costs nothing — and painting other colours needs another prefix.
Parameters ​
| Parameter | Type | Default value |
|---|---|---|
textures | TextureRegistry | undefined |
colors | Partial<LifeColors> | {} |
prefix | string | 'life_' |