aninest-root / module:Interp
module:Interp
Several interpolation function constructors.
Type Aliases
Type Alias | Description |
---|---|
Interp | Interpolation function. At time 0 it should return either 0 or null (for NO_INTERP) |
Functions
Function | Description |
---|---|
getCubicBezier | Returns a cubic bezier interpolation function. |
getLinearInterp | Returns a linear interpolation function. |
getProgress | Gets the linear progress of an animation based on time and duration, clamped between 0 and 1. |
getSlerp | Returns a smooth interpolation function based on the sine function. |
NO_INTERP | A constant interpolation function that makes all animations instantaneous, meaning they will transition between states without needing to call updateAnimation. |