easeInQuad easing

This commit is contained in:
MaZderMind 2015-04-15 11:40:03 +02:00
parent 7dc1aaee01
commit 63eec0f4b5

View file

@ -34,6 +34,10 @@ def easeInCubic(t, b, c, d):
t=float(t)/d t=float(t)/d
return c*(t)*t*t + b; return c*(t)*t*t + b;
def easeInQuad(t, b, c, d):
t=float(t)/d
return c*t*t + b;
def easeOutQuad(t, b, c, d): 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;