public class LSystem
extends java.lang.Object
Constructor and Description |
---|
LSystem()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTree()
Make the current state of the L-system available, e.g. for
interpreting the string using turtle graphics commands.
|
void |
init() |
void |
iterate(int maxLength)
Generate the tree by applying the rules until the
description has a given length.
|
public void init()
public void iterate(int maxLength)
maxLength
- maximal length of tree until we continue to iterate.public java.lang.String getTree()
"