Skip to content

anim-format (runtime format) / randomFrameList

Function: randomFrameList() ​

ts
function randomFrameList(a): string[];

the frames a gotoRandom picks from: its range (0-based, both ends in) or its list

Parameters ​

ParameterType
a{ frames: string[]; range?: { from: number; to: number; }; }
a.framesstring[]
a.range?{ from: number; to: number; }
a.range.fromnumber
a.range.tonumber

Returns ​

string[]

HereSplash — 2D animation for the web