I once did a quick experiment into creating drawings from nothing but code, but based on natural phenomena. The first thing I tried was gravity and it gave some results which I really liked. Here are the PostScript drawings it made.
As I’m on a bit of a Cocoa Screensaver mission at the moment I spent a couple of hours creating a Gravity Screensaver. Just a bit of fun really. Here it is: