Flash notes by Edzis

ActionScript programmer / Flash developer Edgars Simsons on professional stuff

Archive for January 23rd, 2009

Version 2 of Tree generator in 25 lines of ActionScript

with 4 comments

Sample image of Tree generator 2

25 line Tree generator version 2. Click to view

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.

Written by edzis

January 23rd, 2009 at 11:35 am