Part III

 
Understanding language, L-System
Use language to describe graphics
Turtle graphics
Simple exercises
Recursion
Koch curve example
Tree


How to draw a tree? We start with a simple one.

t1.mark(len);
t1.push();
t1.left();
t1.mark(len);
t1.pop();
t1.right();
t1.mark(len);

tree(float _l, int _d) 
t1.mark(_l);
t1.push();
t1.left();
t1.mark(_l);
tree(?, ?);
t1.pop();
t1.right();
t1.mark(_l);
tree(?, ?);

To view this content, you need to install Java from java.com