Skip to content

anim-format (runtime format) / lerpCameraPose

Function: lerpCameraPose() ​

ts
function lerpCameraPose<P>(
   a, 
   b, 
   t
): P;

a pose between two: position and rotation linear, scale geometric (a 1× → 4× zoom passes 2× halfway, like the editor's camera keys)

Type Parameters ​

Type Parameter
P extends Omit<CameraPose, "width" | "height">

Parameters ​

ParameterType
aP
bP
tnumber

Returns ​

P

HereSplash — 2D animation for the web