Skip to content

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 ​

ParameterTypeDefault value
texturesTextureRegistryundefined
colorsPartial<LifeColors>{}
prefixstring'life_'

Returns ​

LifeArt

Released under the MIT License.