User:Laurier Rochon/prototyping/l-systems: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 10: Line 10:
'''What the symbols mean'''
'''What the symbols mean'''


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


Will yield something like :
Will yield something like :

Revision as of 11:23, 10 June 2011

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