Interpolation Functions
Customize how tweened stores interpolate between complex values like colors and arrays.
Custom Interpolation
Tweened and spring can animate non-numeric values with a custom interpolate function.
Function Signature
The interpolate function takes start and end values and returns a function that maps progress to interpolated value.
function lerp(a, b) { return (t) => a + (b - a) * t; }