It seems you are looking for a damped sine wave. I’ve implemented the respective formula in the following fiddle:
https://jsfiddle.net/p293y7ue/5/
I’m just using sin
instead of cos
so the curve starts at the origin.
It seems you are looking for a damped sine wave. I’ve implemented the respective formula in the following fiddle:
https://jsfiddle.net/p293y7ue/5/
I’m just using sin
instead of cos
so the curve starts at the origin.