Skip to content

anim-format (runtime format) / ParticleFrame

Interface: ParticleFrame ​

one evaluated frame, struct-of-arrays, reused between calls

Properties ​

PropertyTypeDescription
alphaFloat32Array-
colorUint32Array-
countnumber-
frameUint16Arraysprite-sheet cell
idFloat64Arrayparticle identity (stable across frames: stream i = i, burst b = …)
rotFloat32Arrayradians
sxFloat32Arrayscale factors relative to a 1 px texture diameter (renderer divides by its texture size)
syFloat32Array-
xFloat32Array-
yFloat32Array-

HereSplash — 2D animation for the web