This should be the right way to account for air friction, and the simulation looks good.
Also added a lot of interactivity. You can now reset the simulation without rebooting the program. You can also give the pendulum a "boost" with arrow keys during simulation. Try it with friction on!
About
Double pendulum simulator to showcase the chaotic behavior