diff --git a/easing.py b/easing.py index 1be7c05..c362019 100644 --- a/easing.py +++ b/easing.py @@ -7,11 +7,20 @@ import math def easeLinear(t, b, c, d): return c*t/d + b + +def easeOutCubic(t, b, c, d): + t=float(t)/d-1 + return c*((t)*t*t + 1) + b + +def easeInCubic(t, b, c, d): + t=float(t)/d + return c*(t)*t*t + b; + + def easeInQuad(t, b, c, d): t /= d return c*t*t + b - def easeOutQuad(t, b, c, d): t /= d return -c * t*(t-2) + b