Skip to content

hm5-types (source format) / SlotSwap

Interface: SlotSwap ​

One slot swap (see SymbolInstanceElement.swaps). Every field is optional: no symbolId = the slot keeps its own symbol and only gets the matrix / look.

Properties ​

PropertyTypeDescription
colorEffect?ColorEffecta colour effect on top of the object's own (tint, brightness …)
filters?InstanceFilter[]filters drawn after the object's own
matrix?Mat2Dadded in the slot object's OWN space on every frame (its transform × this); absent = none
symbolId?stringthe symbol shown in the slot instead of the layer's own

HereSplash — 2D animation for the web