Skip to content

anim-format (runtime format) / dressSymbol

Function: dressSymbol() ​

ts
function dressSymbol(
   file, 
   symbol, 
   rules
): AnimSymbol;

symbol as drawn under rules (weakest first): the same symbol when nothing of its own runs is dressed, else a copy whose runs (and loop rounds) hold the dressed items — layers, frames and everything else are shared, so a player can swap one for the other in place. Only the symbol's OWN items: the clips inside it are dressed by their player (same rules + their own). Cached per symbol and rule list.

Parameters ​

ParameterType
fileAnimFile
symbolAnimSymbol
rulesreadonly AnimSlotRule[]

Returns ​

AnimSymbol

HereSplash — 2D animation for the web