Skip to content

anim-format (runtime format) / scenePerspAt

Function: scenePerspAt() ​

ts
function scenePerspAt(scene, localFrame): AnimPersp | null;

A scene's perspective at a scene-local frame: the camera's keyed one (perspFrames, one per frame, plan R10 — dolly zoom) else the scene's own; null = the default (55° from the stage centre).

Parameters ​

ParameterType
scene{ persp?: AnimPersp; perspFrames?: AnimPersp[]; }
scene.persp?AnimPersp
scene.perspFrames?AnimPersp[]
localFramenumber

Returns ​

AnimPersp | null

HereSplash — 2D animation for the web