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

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 6: Line 6:
*Rule : F -> FF-F-F-F-FF
*Rule : F -> FF-F-F-F-FF
*Angle: 90
*Angle: 90
*Order: 4
*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 :
Will yield something like :

Revision as of 10: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