L-systems

From GenerativeArt

(Difference between revisions)
Jump to: navigation, search
(More Examples)
(Introduction: Edit to make format conform and content tuning)
-
== Introduction ==
+
== Rendering L-system expressions ==
-
"L System" is named after it's inventor <em>Aristid Lindenmayer.</em>
+
<SPAN STYLE="font-size: larger;">Introductory example </SPAN>
-
L System is a grammar based system for describing and generating branching structures which (often) exhibit self-similarity.
 
-
=== Basic Operations ===
+
The "L" in "L-system" refers to its inventor <em>Aristid Lindenmayer.</em>
 +
 
 +
An L-system is a grammar based system for describing and generating branching structures which (often) exhibit self-similarity. 
 +
 
 +
Such systems produce a string expression which can be rendered into graphics.  The string is essentially a series of commands for moving a virtual pen.  The commands are executed from left to right.
 +
 
 +
 
 +
<SPAN STYLE="font-size: larger;"><u>Basic Commands</u></SPAN>
 +
 
* n is number of iterations
* n is number of iterations
* &#948; is angle increment
* &#948; is angle increment
* ] pops the current state off the stack (i.e. gets position and heading)
* ] pops the current state off the stack (i.e. gets position and heading)
-
==== Example of how to interpret a string ====
+
 
 +
<SPAN STYLE="font-size: larger;"><u>Example of how to interpret a strings</u></SPAN>
 +
 
  &#948; = 45°
  &#948; = 45°
  d = 2
  d = 2

Revision as of 20:47, 16 September 2009

Personal tools