Usage
Simple
The simple way to use waveforms with ixfx is with springValue . It returns a function which in turn provides numeric values.
Options for springValue
are documented . Generally, tweaking the stiffness and damping values is enough.
Generator
An alternative is to use the spring , which returns a generator instead. The benefit of the generator is you can check when the spring has finished moving using the done
property.