Skip to content

anim-format (runtime format) / advancePlayhead

Function: advancePlayhead() ​

ts
function advancePlayhead(
   pos, 
   speed, 
   dir
): number;

where one beat moves the playhead (dir 1 forward, -1 backward)

Parameters ​

ParameterType
posnumber
speednumber
dir-1 | 1

Returns ​

number

HereSplash — 2D animation for the web