Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
A
B
D
F
G
H
L
M
P
R
S
T
X
Y
A
applet
- Variable in class pturtle.
Turtle
The PApplet to render to.
B
backward(int)
- Method in class pturtle.
Turtle
Move Turtle backward.
D
draw()
- Method in class pturtle.
HistoryTurtle
Draw method.
drawColor
- Variable in class pturtle.
Line
Colour to draw line in, as a colour created with
PApplet.color(int, int, int)
.
drawColor
- Variable in class pturtle.
Turtle
Colour of line drawn by Turtle (as a Processing color).
drawing
- Variable in class pturtle.
Turtle
If false, the Turtle moves but does not leave a trail.
F
forward(int)
- Method in class pturtle.
Turtle
Move Turtle forward.
fromX
- Variable in class pturtle.
Line
From location in x axis.
fromY
- Variable in class pturtle.
Line
From location in y axis.
G
getDistance(int, int)
- Method in class pturtle.
Turtle
Get the distance between this Turtle and point (x,y).
getDistance(Turtle)
- Method in class pturtle.
Turtle
Get the distance between this Turtle and another.
getNearest(List<Turtle>)
- Method in class pturtle.
Turtle
Get the nearest (Euclidean distance) Turtle from a List.
getRotation()
- Method in class pturtle.
Turtle
Get the angle that the Turtle is facing.
H
HistoryTurtle
- Class in
pturtle
HistoryTurtle extends Turtle to record lines drawn in the lines array.
HistoryTurtle(PApplet)
- Constructor for class pturtle.
HistoryTurtle
Create a new turtle
HistoryTurtle(Turtle)
- Constructor for class pturtle.
HistoryTurtle
Copy a turtle
L
left(int)
- Method in class pturtle.
Turtle
Turn the Turtle left.
Line
- Class in
pturtle
Line class, stored by HistoryTurtle.
Line(PApplet, int, int, int, int, int)
- Constructor for class pturtle.
Line
Create a new line.
lines
- Variable in class pturtle.
HistoryTurtle
The lines previously drawn
M
moveToward(int, int, float)
- Method in class pturtle.
Turtle
Move the Turtle toward point (x,y).
moveToward(int, int, int)
- Method in class pturtle.
Turtle
Move the Turtle a specified number of pixels toward point (x,y).
moveToward(Turtle, float)
- Method in class pturtle.
Turtle
Move Turtle toward another.
moveToward(Turtle, int)
- Method in class pturtle.
Turtle
Move Turtle toward another.
P
pturtle
- package pturtle
R
randomPenColor()
- Method in class pturtle.
Turtle
Randomise the colour that the Turtle draws with from a set of 16 hard-coded colours.
right(int)
- Method in class pturtle.
Turtle
Turn the Turtle right.
S
setLocation(int, int)
- Method in class pturtle.
Turtle
Move the Turtle to an absolute location.
setPenColor(int)
- Method in class pturtle.
Turtle
Set the colour the Turtle draws with.
setPenColor(int, int, int)
- Method in class pturtle.
Turtle
Set the colour the Turtle draws with.
setRotation(int)
- Method in class pturtle.
Turtle
Set the direction the Turtle is facing in to an absolute angle.
strafeLeft(int)
- Method in class pturtle.
Turtle
Strafe the Turtle left.
strafeRight(int)
- Method in class pturtle.
Turtle
Strafe the Turtle right.
T
toString()
- Method in class pturtle.
Turtle
Convert the Turtle to a String representation
toX
- Variable in class pturtle.
Line
To location in x axis.
toY
- Variable in class pturtle.
Line
To location in y axis.
Turtle
- Class in
pturtle
Turtle class, making ideas from the LOGO teaching language available in Processing.
Turtle(PApplet)
- Constructor for class pturtle.
Turtle
Standard constructor, creates a Turtle in the middle of the screen which draws in white.
Turtle(Turtle)
- Constructor for class pturtle.
Turtle
"Copy" constructor, creates an identical Turtle to the one passed in.
X
x
- Variable in class pturtle.
Turtle
x location on screen.
Y
y
- Variable in class pturtle.
Turtle
y location on screen.
A
B
D
F
G
H
L
M
P
R
S
T
X
Y
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
processing library PTurtle by George Bashi and Ollie Glass. (c) 2007