If you like this, you should definitely checkout the gallery, the simple python source and all other beauties at Andrej Bauer's http://www.random-art.org/.
He has an interesting story of migrating from a ocaml + cduce implementation to one based on Django and javascript. The javascript source was generated by compiling the original Ocaml sources using Ocamljs. The newer version being based on javascript, one can run it in one's browser.
For the story: http://math.andrej.com/2010/08/17/random-art-and-the-law-of-...