# Difference between revisions of "L-systems"

From JSXGraph Wiki

Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||

Line 43: | Line 43: | ||

var brd = []; | var brd = []; | ||

brd[0] = JXG.JSXGraph.initBoard('box0', {originX: 300, originY: 300, unitX: 1, unitY: 1}); | brd[0] = JXG.JSXGraph.initBoard('box0', {originX: 300, originY: 300, unitX: 1, unitY: 1}); | ||

− | turtle[0] = brd[0]. | + | turtle[0] = brd[0].create('turtle'); |

function expander(level,axiom,rules) { | function expander(level,axiom,rules) { |

## Revision as of 11:50, 25 March 2011

## Contents

### 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

- Quadratic snowflake variation
- Dragon curve
- Islands and lakes
- Peano curve
- Hexagonal Gosper curve
- Plant generation I
- Plant generation II
- Hexagonal kolam
- Mango kolam
- Penrose tiling

### The underlying JavaScript code

The underlying JavaScript code for producing Lindenmayer systems

### References

- Przemyslaw Prusinkiewicz, James Hanan: Lindenmayer Systems, Fractals, and Plants (Lecture Notes in Biomathematics). Springer-Verlag 1989, ISBN 0-387-97092-4
- http://en.wikipedia.org/wiki/L-system
- http://en.wikipedia.org/wiki/Space-filling_curve
- An Introduction to Lindenmayer Systems