Archive for January 23rd, 2009
Version 2 of Tree generator in 25 lines of ActionScript
January 2009 finalists of the 25-Line ActionScript Contest have been announced and sadly my entry is not among them. Therefore, to fulfill my desire of sharing I present you Tree generator 2. And for my fellow coders here is the source. Just a small tip – click on the stage to start a new tree.
This time it is more math than flash – the tree is drawn by generating 3D vectors (with critical parameters of rotationY, rotationZ, length) for branches and changing them accordingly to their age and their parent branch position.
