4 ms·
Ask HN: Good JavaScript library for smooth numeric interpolation?
For games and stuff. Only need basic features like Lerp, Bezier curves, etc ideally with some pre-defined curves similar to CSS's ease-in, ease-out, ease-in-out, etc.
Seems like this should be a widely-used thing but I had trouble finding it on search
- brundolf 5y agoFor any who come after, I found this for formal Bezier functionality: http://pomax.github.io/bezierjs/ http://pomax.github.io/bezierjs/ And this for what I was really looking for, natural and rich animations: https://github.com/michaelvillar/dynamics.js/ https://github.com/michaelvillar/dynamics.js/