new Ease.expo()
Exponential easings.
Methods
-
staticEase.expo.in()
-
Expo In.
Formulareturn x==0.0 ? 0.0 : 2.0^(10.0 * (x-1));
-
staticEase.expo.inout()
-
Expo In-Out
Formulaif(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.
Formulareturn x==1.0 ? 1.0 : (-2.0^(-10.0*x))+1.0;