Just type in the speed you want the pendulum to move. The red bar represents thermal, green bars represent potential, and blue is kinetic. Gravity=1 means that the pendulum goes on at the same speed forever. Keep it above 0.98 or so to be a more accurate pendulum but you can screw around with other gravity :P I personally like 0.99 Press space to show speed and gravity. Press b to hide them. The balls escaping the pendulum represents the energy transferring from the pendulum to the air. WARNING: IF YOU ENTER THE SPEED AND GRAVITY VALUES TOO FAST, THE PROGRAM WILL GLITCH OUT!!!!!! Also if you enter the speed value too high the bars will glitch out.
This is for my science class :D This is my second attempt at making a pendulum (First one completely failed) Thank you William (boblovespi) for help with the bars :D And credit to Boblovespi for intro background Song is The Fat Rat Windfall.