From 2df8c4888f70fcfbcf4a85bdf637047e06640691 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Fri, 18 Jul 2014 21:47:46 +0200 Subject: [PATCH] add linar easing function --- make.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/make.py b/make.py index 9a63b4a..d4bd292 100755 --- a/make.py +++ b/make.py @@ -202,10 +202,15 @@ def easeOutQuad(t, b, c, d): t=float(t)/d return -c *(t)*(t-2) + b; -# expose easings to project +def easeLinear(t, b, c, d): + t=float(t)/d + return t*c+b + +# expose easings to project # HACKYYYYY project.easeOutCubic = easeOutCubic project.easeInCubic = easeInCubic project.easeOutQuad = easeOutQuad +project.easeLinear = easeLinear # debug-mode selected by --debug switch if debug: