add linar easing function

This commit is contained in:
MaZderMind 2014-07-18 21:47:46 +02:00
parent 2d6d8f4e79
commit 2df8c4888f

View file

@ -202,10 +202,15 @@ def easeOutQuad(t, b, c, d):
t=float(t)/d t=float(t)/d
return -c *(t)*(t-2) + b; 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.easeOutCubic = easeOutCubic
project.easeInCubic = easeInCubic project.easeInCubic = easeInCubic
project.easeOutQuad = easeOutQuad project.easeOutQuad = easeOutQuad
project.easeLinear = easeLinear
# debug-mode selected by --debug switch # debug-mode selected by --debug switch
if debug: if debug: