Exemple #1
0
 def easeOut(t, b, c, d, aa, bb):
     t /= d
     t -= 1
     return c * Math.sqrt(1 - t*t) + b
Exemple #2
0
 def easeInOut(t, b, c, d, aa, bb):
     t /= d/2
     if t < 1:
         return -c/2 * (Math.sqrt(1 - t*t) - 1) + b
     t -= 2
     return c/2 * (Math.sqrt(1 - t*t) + 1) + b
Exemple #3
0
 def easeIn(t, b, c, d, aa, bb):
     t /= d
     return -c * (Math.sqrt(1 - t*t) - 1) + b