add linar easing function
This commit is contained in:
parent
2d6d8f4e79
commit
2df8c4888f
1 changed files with 6 additions and 1 deletions
7
make.py
7
make.py
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue