-
some expressions help?
I’d have a random wiggle expression:
seedRandom(13,true);
wiggle(7,15)but would like to get it to decay over time, have the action trail off (in a controllable way)
Perhaps using some decay code Dan Ebberts was kind enough to provide:t = time;
if (t > 0){
freq =3;
amplitude = 50;
decay = 3.0;s = amplitude*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t);
value + [s,s]
}else{
value
}The beauty of this decay is that I can tweak it by changing freq, amplitude, decay values.
I just don’t know how to put this all together.thanks!