Simulates randomized enviornmental factors to "grow" a tree and then cut it down to see its age rings.
Load tree.htm
in a browser (Ideally Firefox).
Each time the page loads it will generate a new tree ring. Once you have one you like click the generate SVG link, which will write the svg markup to the console for you to copy into a file.
If the script blows up or generates something bizzare, take a deep breath and refresh the page. This code is inefficient, error prone and a mess caused by its many purposes and long life.
Originally this code generated color svg files but I was never happy with the results (see old commit for samples). After building a MidTBot I modified the code to generate a more plotable svg.
You can read more about the original idea in this blog post.