User:Laurier Rochon/prototyping/l-systems

From XPUB & Lens-Based wiki

L-Systems

Using basic transformation rules such as :

  • Axiom: F-F-F-F
  • Rule : F -> FF-F-F-F-FF
  • Angle: 90
  • Steps: 4

What the symbols mean

  • F is forward by X pixels
  • + is turn Y degrees
  • - is turn -Y degrees
  • [ is record the current state
  • ] restore the matching last ] state

Will yield something like :

Screenshot-3.png

Other set of rules...

Sss1.png