Skip to content

anim-format (runtime format) / flattenFrame

Function: flattenFrame() ​

ts
function flattenFrame(
   file, 
   symbolName, 
   frame, 
   depth?
): FlatSprite[];

Everything a symbol shows at a frame, flattened to sprites with their full matrices — the reference semantics for every runtime, and what the export round-trip tests compare against the editor.

Parameters ​

ParameterTypeDefault value
fileAnimFileundefined
symbolNamestringundefined
framenumberundefined
depth?number0

Returns ​

FlatSprite[]

HereSplash — 2D animation for the web