Artificial Life - Term Project   ·   L-Systems   ·   marc mathis & ivo schindler

 backward main forward 



Square

1. Try: without any recursion, difficult axiom or rules

Recursions: 1
Angle     : 90
Axiom     : A
Rule      : A=F+F+F+F
this one is quite simple: one step forward, turn left 90, one step forward, turn left 90, one step forward, turn left 90, one step forward. It results in a square.

Note: we could even write it as the axiom: F+F+F+F





2. Try: with recursion

Recursions: 4
Angle     : 90
Axiom     : A
Rule      : A=F+A
this one is almost the same as above. if you write it out after the 4th recursion it results in:
A -> F+A -> F+F+A -> F+F+F+A -> F+F+F+F+A

Note:
the last turning does not affect the square at all. there is no further step. and even if there was, it would not affect. it would again paint the same square on the existing. the same happens if we do not stop after 4 recursions.
the rule can also be written as: A=A+F or A=+FA , aswell substituting the + by a - .





3. Test yourself:

Recursions: 4
Angle     : 45
Axiom     : +A
Rule      : A=++FA
which one would we get?
a b c





 backward main forward