Here’s a simple function you can use for easing motions, just set your “time” variable to go from 0 to 1.
The ‘g’ adjusts the amount of easing.
In the animation above I used the function like this:x = 300 * ease(time, g);float ease(float p, float g){  if (p < 0.5)     return 0.5 * pow(2*p, g);  else    return 1 - 0.5 * pow(2*(1 - p), g);}
Edit: the “if” statement was missing the part after ‘<’ because html ingored that character thinking it was a part of html :S
čujem Onra na Outlooku, fino
uno más


Sigur Rós’ Kveikur x Patakk
v = v2 - (v2 - v1) * cos(2 * PI * pow(time, 2.3)) / (pow(time, 5));

disi matematika
Lovri je rođendan.
>>>