top of page

Code

Click on the black canvas to start the animation and use the sliders to adjust the length of the pendulum and the animation speed. Once the animation ends, the program can be reset by clicking on the canvas, and then clicking one more time to start the animation. The program can also be reset by clicking on the reset button at any time.

Link to source code

bottom of page