Skip to content

anim-format (runtime format) / lerpItem

Function: lerpItem() ​

ts
function lerpItem<T>(
   a, 
   b, 
   t
): T;

an item t of the way to b (matrix, alpha, colour, filters); its other fields (inner frame, names, actions) stay a's

Type Parameters ​

Type Parameter
T extends Item

Parameters ​

ParameterType
aT
bItem
tnumber

Returns ​

T

HereSplash — 2D animation for the web