Function toAnimationFrames
- toAnimationFrames(customInterpolate): (<T, TReturn>(arr_t, values, decimal?) => TReturn)
-
Returns (<T, TReturn>(arr_t, values, decimal?) => TReturn)
-
- <T, TReturn>(arr_t, values, decimal?): TReturn
-
Type Parameters
-
T extends unknown[] = number[]
-
TReturn extends unknown[] = T
Parameters
-
arr_t: number[]
-
values: T
-
Optional
decimal: number
Returns TReturn
Converts interpolation functions written in this style
(t, values, decimal) => { ... }
to work in theBatchSpringEasing
You use it like so,