public class Turtle extends ConcurrentLinkedQueue<TurtleDrawCommand>
TurtleDrawCommand
s and draws them on command.Constructor and Description |
---|
Turtle(processing.core.PApplet parent)
Create a new Turtle with a given PApplet.
|
Modifier and Type | Method and Description |
---|---|
void |
draw()
Creates a default
TurtleState and threads it through each
TurtleDrawCommand , applying the requisite transformations. |
add, addAll, contains, isEmpty, iterator, offer, peek, poll, remove, size, spliterator, toArray, toArray
clear, element, remove
containsAll, removeAll, retainAll, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
clear, containsAll, equals, hashCode, parallelStream, removeAll, removeIf, retainAll, stream
public Turtle(processing.core.PApplet parent)
parent
- the PApplet that will be used for drawingpublic void draw()
TurtleState
and threads it through each
TurtleDrawCommand
, applying the requisite transformations.Processing Library loom by Cora Johnson-Roberson. (c) 2014-2016