add ease*Cubic easings back
This commit is contained in:
parent
97e8c3b094
commit
f7fa212dfe
1 changed files with 10 additions and 1 deletions
11
easing.py
11
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
|
||||
|
|
Loading…
Add table
Reference in a new issue