Skip to content

anim-format (runtime format) / stateBeat

Function: stateBeat() ​

ts
function stateBeat(
   map, 
   at, 
   read, 
   forward
): StateMove | null;

THE beat of a state machine (see the module comment) at global frame at; forward = the clip is playing forward (the state loop applies), false = stopped / backward (only arrows). Null = no state machine here, or nothing to do: the timeline plays on as it says.

Parameters ​

ParameterType
mapFrameMap
atnumber
readStateInputs
forwardboolean

Returns ​

StateMove | null

HereSplash — 2D animation for the web