Skip to content

anim-format (runtime format) / lerpMatrix

Function: lerpMatrix() ​

ts
function lerpMatrix(
   a, 
   b, 
   t
): Matrix;

A matrix between two: position, rotation (the short way), scale and shear each move linearly — a turning object keeps its size.

Parameters ​

ParameterType
aMatrix
bMatrix
tnumber

Returns ​

Matrix

HereSplash — 2D animation for the web