Bouncing ball

Script

Speed = 8 t = Slider(0, 1, 0.001, Speed, 170, false, true, false, false) SetVisibleInView(t, 1, false) f(x, y) = floor(x-y) + y g(x) = f(x,t) ShowLabel(g, false) h(x) = abs(1/2 sin(pi x))+1.3 SetVisibleInView(h, 1, false) c = Circle((1.1, h(t)), 0.3) SetFilling(c, 1) ShowLabel(c, false) ShowGrid(false) ShowAxes(false) CenterView((1, 1)) StartAnimation(t, true)