-
Squash and stretch
Hi!
As I wrote a few posts ago, I’m “playing” a little with motion and animation. Obviously beginner which I am, many times I have some problems during the process. Are a couple of days that indeed I wonder how I can make an perpetual Squash and stretch.
I found on Dan website (Ebberts, of course) the expression, but obviously is short (time), instead I would that be perpetuated over time, even at the same speed (-referring to the example of dan-, not the starting one, it’s really fast, but not even the final one, it’s not very evident, something in between)
I hope I made myself clear -I’m sorry for my little english-
thank u in advance!!!
maxDev = 13; // max deviation in pixels
spd = 30; //speed of oscillation
decay = 1.0; //how fast it slows downt = time - inPoint;
x = scale[0] + maxDev*Math.sin(spd*t)/Math.exp(decay*t);
y = scale[0]*scale[1]/x;
[x,y]