How to change a sine function?

38 Views Asked by At

I use sine functions to control cyclic animations I create with code. For example, I can use something like a * sin(millis() * f * 2 * pi), and assign that value to some property of a geometry, making it cycle from -a to a.

I’d like to have some kind of “dumping” applied to it, so that the curve goes “faster”/“slower” to 1. I played a bit with combining sine with other functions but nothing worked.