add ease*Cubic easings back

This commit is contained in:
MaZderMind 2015-08-28 11:23:30 +02:00
parent 97e8c3b094
commit f7fa212dfe

View file

@ -7,11 +7,20 @@ import math
def easeLinear(t, b, c, d): def easeLinear(t, b, c, d):
return c*t/d + b 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): def easeInQuad(t, b, c, d):
t /= d t /= d
return c*t*t + b return c*t*t + b
def easeOutQuad(t, b, c, d): def easeOutQuad(t, b, c, d):
t /= d t /= d
return -c * t*(t-2) + b return -c * t*(t-2) + b