Package one.empty3.growth.graphics
Class DrawingLSystem2D
- java.lang.Object
-
- one.empty3.growth.graphics.DrawingLSystem2D
-
public class DrawingLSystem2D extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DrawingLSystem2D(Turtle2D t, LSystem lSystem, java.util.HashMap<Symbol,java.lang.String> symbolAction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyRules()
void
drawStep()
void
left(double angle)
void
line(double dist)
void
reset(java.awt.Image image)
void
right(double angle)
-
-
-
Method Detail
-
reset
public void reset(java.awt.Image image)
-
applyRules
public void applyRules() throws NotWellFormattedSystem
- Throws:
NotWellFormattedSystem
-
drawStep
public void drawStep()
-
line
public void line(double dist)
-
right
public void right(double angle)
-
left
public void left(double angle)
-
-