Pendulum Simulation using Pygame

What is it?

  • Simulation of pendulum
  • Is a nice tech demo, in which gravity gradually increases, and you get to see the pendulum animate
  • Features interactivity: user can modify pendulum’s length


python ./

What I learned

  • trigonometry in pygame using the math module
  • basics of making a physics simulation
  • converting math formulas and pseudo code from different language/library.


GitHub - jadenhensley/pendulum_pygame at
Pendulum project, built using pygame and math modules. - GitHub - jadenhensley/pendulum_pygame at