Input an axiom into the text box labeled 'Start', define the symbols and their associated production rules and actions in the adjacent input areas. The syntax for the actions consist of plotting commands of the form 'command1:arg1;command2:arg2;...;commandN:argN'. The commands are interpreted from left to right.
L-System Plotting Commands
|
Command
|
Argument
|
Description
|
draw
|
n: integer or floating-point value
|
Draw forward n units at the current angle
|
turn
|
n: integer or floating-point value
|
Turn n degrees (2-D L-Systems only)
|
turnx
|
n: integer or floating-point value
|
Turn n degrees around the x-axis (3-D L-Systems only)
|
turny
|
n: integer or floating-point value
|
Turn n degrees around the y-axis (3-D L-Systems only)
|
push
|
'angle' or 'position'
|
Push the current angle or position onto its respective stack
|
pop
|
'angle' or 'position'
|
Pop the top angle or position from the respective stack
|
|
|
|
|
|
After the axiom, rules and constants are chosen, press the 'Start' button to initialize the L-System and plot the axiom (0th iteration). To iterate the current L-System press the 'Iterate' button and the new L-System will automatically be drawn.
Alternatively, choose one of the preset example L-Systems from the drop down list. You can also save an L-System to this list, but note that it will only survive as long as the worksheet is open and has not been restarted.