Skip to content

anim-format (runtime format) / itemFrame

Function: itemFrame() ​

ts
function itemFrame(
   item, 
   symbol, 
   elapsed
): number;

The inner frame a (synced) symbol item shows elapsed frames after its run began. Mirrors the editor exactly. A slowed / sped-up item can sit between inner frames: the one shown is rounded half up (itemPlayhead).

Parameters ​

ParameterType
itemItem
symbolAnimSymbol
elapsednumber

Returns ​

number

HereSplash — 2D animation for the web