This is work I did for an assignment on artificial genotypes. The specification was to create an Adobe Flash (ActionScript) application which displays a set of organisms and allows the user to act as the fitness algorithm for evolution (they can choose which trees they like best and make more of them).
The tree branches/leaves are produced using a recursive algorithm, oriented using 3D vectors and matrices and displayed using 2D rectangles in Flash.
The Replicate button produces mutations of 4 user-selected individuals.
The Elitism Select button selects 4 individuals based on the results of a coded fitness algorithm, and produces 4 mutations of each.