From f7fa212dfe1f25af1b4a98aa24feaf4a4ebf0542 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Fri, 28 Aug 2015 11:23:30 +0200 Subject: [PATCH] add ease*Cubic easings back --- easing.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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