aninest root / module:Interp
module:Interp
Several interpolation function constructors.
Index
Type Aliases
Type alias | Description |
---|---|
Interp | Interpolation function. At time 0 it should return either 0 or null (for NO_INTERP) |
Functions
Function | Description |
---|---|
NO_INTERP | - |
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. |