It is amazing how much one can achieve with so little code. I would dare to say that such demos are a kind of...indie art?
Can you give us some pointers, which APIs and algorithms did you use to generate the demo? I bet it will be an interesting lesson on math and web