This is a simple Double Pendulum project written in C++ using Cinder library.
You can tweak different parameters (such as gravity, length, colors etc.) using the control panel provided in the software (lower left corner). There are also a couple of controling items such as pausing the animation.
The CMakeFile provided here would need some adjusting before you can compile the project in your system.