new Ease.quad()
Quadratic easings.
Methods
-
staticEase.quad.in()
-
Quadratic In.
Formulareturn x^2;
-
staticEase.quad.inout()
-
Quadratic In-Out
Formulaif ((x*=2.0) < 1.0) return 0.5*x*x; return -0.5 * ((--x)*(x-2.0) - 1.0);
-
staticEase.quad.out()
-
Quadratic Out.
Formulareturn -x*(x-2);