Controls: Mouse: adjust top pendulum. Mouse + Space: adjust lower pendulum. Adjust Damping as desired.
Credit to @wwjd3 for the source project (including the physics). I just added some adjustable damping.