def easeOut(t, b, c, d, aa, bb): t /= d t -= 1 return c * Math.sqrt(1 - t*t) + b
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
def easeIn(t, b, c, d, aa, bb): t /= d return -c * (Math.sqrt(1 - t*t) - 1) + b