Skip to content

anim-format (runtime format) / playedAfter

Function: playedAfter() ​

ts
function playedAfter(
   played, 
   prev, 
   next, 
   total
): number;

The frames a clip has already run before the pass it is in, after its playhead went from prev to next (total frames long): one more pass on the step from the last frame round to the first, kept on a step forward (or no move), 0 after any other jump.

Parameters ​

ParameterType
playednumber
prevnumber
nextnumber
totalnumber

Returns ​

number

HereSplash — 2D animation for the web