click on the numbers to restart with different turn constraints
This reminds me of tinkertoys, traffic diagrams, molecular diagrams, and all sorts of other things. I like playing with things that evoke a lot of different mental images. They sort of flirt with being useful somehow, but still stay firmly in the realm of being just toys.
And that's fine with me.
The basic gist of the program is that we recursively draw a line, a circle, and rotate a certain amount. I threw in a couple of extra details like every once in a while throwing in an extra-saturated circle and also fading out as the train gets longer.
I find that these little extras can sometimes add a nice bit of visual interest. Maybe I'm just deluded. At some point I want to play these visual games with real data in order to come up with something that simultaneously looks cool, is fun to play with, and gives you a new way of looking at masses of data... well, once I can come up with an easy way of getting hold of said data through javascript.