terrapin
Class HistoryTerrapin
java.lang.Object
terrapin.Terrapin
terrapin.HistoryTerrapin
public class HistoryTerrapin
- extends Terrapin
HistoryTurtle extends Terrapin to record lines drawn in the lines array. These
can be edited so as to change what has already been drawn. This class
is much, much slower than the normal Terrapin class.
- Author:
- George Bashi, Ollie Glass
Field Summary |
java.util.ArrayList<Line> |
lines
The lines previously drawn |
Method Summary |
void |
draw()
Draw method. |
Methods inherited from class terrapin.Terrapin |
backward, forward, getDistance, getDistance, getNearest, getRotation, left, moveToward, moveToward, moveToward, moveToward, randomPenColor, right, setLocation, setPenColor, setPenColor, setRotation, strafeLeft, strafeRight, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
lines
public java.util.ArrayList<Line> lines
- The lines previously drawn
HistoryTerrapin
public HistoryTerrapin(processing.core.PApplet applet)
- Create a new Terrapin
- Parameters:
applet
- the PApplet to draw to.
HistoryTerrapin
public HistoryTerrapin(Terrapin parent)
- Copy a Terrapin
- Parameters:
parent
- Terrapin to copy
draw
public void draw()
- Draw method. You shouldn't call this unless you are using
PApplet.noLoop()
, as Processing will do so
automatically.
processing library Terrapin by George Bashi and Ollie Glass. (c) 2007