Vector / Resource

L-System

Create a 2D vector path from an L-system grammar. Draw forward with F, and move forward without drawing with f, + and - turn, and [ ] create branches.

iOSmacOSvisionOS

Inlets

Axiom

String

The initial L-system symbol string.

Rules

String

Replacement rules separated by new lines or semicolons.

Iterations

Int

The number of times the rules are applied. Warning: this can get heavy fast at higher values.

Initial Angle

Angle

The starting turtle direction.

Angle

Angle

The turn amount used by + and - symbols.

Step Length

Float

The distance moved by draw and move symbols.

Draw Symbols

String

Symbols that draw a segment while moving forward.

Move Symbols

String

Symbols that move forward without drawing.

Center

Bool

Move the generated path so its bounding box is centered on the origin.

Outlets

Vector

Vector

Properties

Axiom

String

The initial L-system symbol string.

Default
F
Inlet
Axiom

Rules

String

Replacement rules separated by new lines or semicolons.

Default
F=F[+F][-F]
Inlet
Rules

Iterations

Int

The number of times the rules are applied. Warning: this can get heavy fast at higher values.

Default
3
Editor minimum
0
Editor maximum
6
Inlet
Iterations

Initial Angle

Angle

The starting turtle direction.

Default
-1.5707963267948966
Editor minimum
-3.141592653589793
Editor maximum
3.141592653589793
Inlet
Initial Angle

Angle

Angle

The turn amount used by + and - symbols.

Default
0.5235987755982988
Editor minimum
0
Editor maximum
3.141592653589793
Inlet
Angle

Step Length

Float

The distance moved by draw and move symbols.

Default
Spatial
Editor minimum
Spatial
Editor maximum
Spatial
Inlet
Step Length

Draw Symbols

String

Symbols that draw a segment while moving forward.

Default
F
Inlet
Draw Symbols

Move Symbols

String

Symbols that move forward without drawing.

Default
f
Inlet
Move Symbols

Center

Bool

Move the generated path so its bounding box is centered on the origin.

Default
true
Inlet
Center

Version history

  1. Added in 4.2.0