And now for something completely different -- LISP as a tool for creating art. QJ Chen sent Foliage (Tip #2162), which is made up of two function sets. There are three functions named TREE1, TREE2 and TREE3 that draw leaves and trees based on fractal algorithms. Load the LISP code and type TREE1, pick a starting point and then supply a number to seed the fractal. Each number option represents a different variation in the tree growth rules and you'll need to experiment with them to see if anything useful is created. Some result in trees that stand up straight while others look windblown. The result is interesting, and a study of the code is worthwhile for those learning how to program in LISP. |