def easeInOut(t, b, c, d, aa, bb): return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b
def easeIn(t, b, c, d, aa, bb): return -c * Math.cos(t/d * (Math.PI/2)) + c + b