Class: expo

Ease. expo

new Ease.expo()

Exponential easings.

Methods

staticEase.expo.in()

Expo In.
Formula
return x==0.0 ? 0.0 : 2.0^(10.0 * (x-1));

staticEase.expo.inout()

Expo In-Out
Formula

 if(x==0.0) return 0.0;
 if(x==1.0) return 1.0;        
    if ((x*=2.0) < 1.0) return 0.5 * Math.pow(2.0, 10.0 * (x - 1));
    return 0.5 * (-Math.pow(2.0, -10.0 * (--x)) + 2.0);

staticEase.expo.out()

Expo Out.
Formula
return x==1.0 ? 1.0 : (-2.0^(-10.0*x))+1.0;

comments powered by Disqus