Difference between revisions of "L-systems"

From JSXGraph Wiki
Jump to navigationJump to search
Line 7: Line 7:
 
For each system a maximum ''level'' is defined. If this value is increased, the complexity of the drawing rises and running time increases, too.
 
For each system a maximum ''level'' is defined. If this value is increased, the complexity of the drawing rises and running time increases, too.
  
 +
===Examples===
 
Most of the examples are from the book by Przemyslaw Prusinkiewicz and James Hanan: ''Lindenmayer Systems, Fractals, and Plants'', see the References.
 
Most of the examples are from the book by Przemyslaw Prusinkiewicz and James Hanan: ''Lindenmayer Systems, Fractals, and Plants'', see the References.
 
+
====First Example: Sierpinski curve====
===Sierpinski curve===
 
 
<html>
 
<html>
 
<link rel="stylesheet" type="text/css" href="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css" />
 
<link rel="stylesheet" type="text/css" href="http://jsxgraph.uni-bayreuth.de/distrib/jsxgraph.css" />
Line 124: Line 124:
 
</html>
 
</html>
  
 +
====More examples====
 
* [[Quadratic snowflake variation]]
 
* [[Quadratic snowflake variation]]
 
* [[Dragon curve]]
 
* [[Dragon curve]]

Revision as of 19:23, 2 February 2009

Online experiments with Lindenmayer Systems

A Lindenmayer System consists of

  • an initial string called axiom
  • a set of rewriting rules

This is an experimental page, where the Lindenmayer Systems can be changed online. The visualization is done by the JavaScript library JSXGraph. For each system a maximum level is defined. If this value is increased, the complexity of the drawing rises and running time increases, too.

Examples

Most of the examples are from the book by Przemyslaw Prusinkiewicz and James Hanan: Lindenmayer Systems, Fractals, and Plants, see the References.

First Example: Sierpinski curve


More examples

The underlying JavaScript code

The underlying JavaScript code for producing Lindenmayer systems

References