A B D F G H L M R S T X Y

A

applet - Variable in class terrapin.Terrapin
The PApplet to render to.

B

backward(int) - Method in class terrapin.Terrapin
Move Terrapin backward.

D

draw() - Method in class terrapin.HistoryTerrapin
Draw method.
drawColor - Variable in class terrapin.Line
Colour to draw line in, as a colour created with PApplet.color(int, int, int).
drawColor - Variable in class terrapin.Terrapin
Colour of line drawn by Terrapin (as a Processing color).
drawing - Variable in class terrapin.Terrapin
If false, the Terrapin moves but does not leave a trail.

F

forward(int) - Method in class terrapin.Terrapin
Move Terrapin forward.
fromX - Variable in class terrapin.Line
From location in x axis.
fromY - Variable in class terrapin.Line
From location in y axis.

G

getDistance(int, int) - Method in class terrapin.Terrapin
Get the distance between this Terrapin and point (x,y).
getDistance(Terrapin) - Method in class terrapin.Terrapin
Get the distance between this Terrapin and another.
getNearest(List<Terrapin>) - Method in class terrapin.Terrapin
Get the nearest (Euclidean distance) Terrapin from a List.
getRotation() - Method in class terrapin.Terrapin
Get the angle that the Terrapin is facing.

H

HistoryTerrapin - Class in terrapin
HistoryTurtle extends Terrapin to record lines drawn in the lines array.
HistoryTerrapin(PApplet) - Constructor for class terrapin.HistoryTerrapin
Create a new Terrapin
HistoryTerrapin(Terrapin) - Constructor for class terrapin.HistoryTerrapin
Copy a Terrapin

L

left(int) - Method in class terrapin.Terrapin
Turn the Terrapin left.
Line - Class in terrapin
Line class, stored by HistoryTurtle.
Line(PApplet, int, int, int, int, int) - Constructor for class terrapin.Line
Create a new line.
lines - Variable in class terrapin.HistoryTerrapin
The lines previously drawn

M

moveToward(int, int, float) - Method in class terrapin.Terrapin
Move the Terrapin toward point (x,y).
moveToward(int, int, int) - Method in class terrapin.Terrapin
Move the Terrapin a specified number of pixels toward point (x,y).
moveToward(Terrapin, float) - Method in class terrapin.Terrapin
Move Terrapin toward another.
moveToward(Terrapin, int) - Method in class terrapin.Terrapin
Move Terrapin toward another.

R

randomPenColor() - Method in class terrapin.Terrapin
Randomise the colour that the Terrapin draws with from a set of 16 hard-coded colours.
right(int) - Method in class terrapin.Terrapin
Turn the Terrapin right.

S

setLocation(int, int) - Method in class terrapin.Terrapin
Move the Terrapin to an absolute location.
setPenColor(int) - Method in class terrapin.Terrapin
Set the colour the Terrapin draws with.
setPenColor(int, int, int) - Method in class terrapin.Terrapin
Set the colour the Terrapin draws with.
setRotation(int) - Method in class terrapin.Terrapin
Set the direction the Terrapin is facing in to an absolute angle.
strafeLeft(int) - Method in class terrapin.Terrapin
Strafe the Terrapin left.
strafeRight(int) - Method in class terrapin.Terrapin
Strafe the Terrapin right.

T

terrapin - package terrapin
 
Terrapin - Class in terrapin
Terrapin class, making ideas from the LOGO teaching language available in Processing.
Terrapin(PApplet) - Constructor for class terrapin.Terrapin
Standard constructor, creates a Terrapin in the middle of the screen which draws in white.
Terrapin(Terrapin) - Constructor for class terrapin.Terrapin
"Copy" constructor, creates an identical Terrapin to the one passed in.
toString() - Method in class terrapin.Terrapin
Convert the Terrapin to a String representation
toX - Variable in class terrapin.Line
To location in x axis.
toY - Variable in class terrapin.Line
To location in y axis.

X

x - Variable in class terrapin.Terrapin
x location on screen.

Y

y - Variable in class terrapin.Terrapin
y location on screen.

A B D F G H L M R S T X Y

processing library Terrapin by George Bashi and Ollie Glass. (c) 2007