Function Repository Resource:

# LSystemPlot

Display an L-system

Contributed by: Robert Dickau
 ResourceFunction["LSystemPlot"][rules,axiom,n,delta] displays the L-string for the nth iteration of the list rules, starting with the string axiom after n iterations with an angle delta.

## Details and Options

An L-system or Lindenmayer system is a parallel rewriting system that consists of a set of characters to produce strings and a list of production rules that replace each symbol from an initial "axiom" string a number of times. The L-system also needs a way to give the string a graphical meaning.
"F" is an instruction to draw a line segment one unit in the current direction. A plus sign (+) is an instruction to rotate the current direction one angular unit clockwise, and a minus sign (-) is an instruction to rotate the current direction one angular unit counterclockwise.
String replacements are made in parallel.

## Examples

### Basic Examples (4)

Four steps for Koch quadratic rules:

 In[1]:=
 Out[1]=

Get just the resulting string after only one step:

 In[2]:=
 Out[2]=

Continuously modify the angle:

 In[3]:=
 Out[3]=

Grid for named fractals:

 In[4]:=
 In[5]:=
 Out[5]=

### Options (2)

#### ColorData (1)

 In[6]:=
 Out[6]=

#### PlotStyle (1)

 In[7]:=
 Out[7]=

### Applications (3)

Convert to a BSplineCurve:

 In[8]:=
 In[9]:=
 Out[9]=
 In[10]:=
 Out[10]=

Make a tessellation:

 In[11]:=
 Out[11]=

Go to 3D:

 In[12]:=
 In[13]:=
 Out[13]=

## Requirements

Wolfram Language 11.3 (March 2018) or above

## Version History

• 1.0.0 – 01 April 2019