Terrapin Resources

Below are three boxes. The one with the turtle is where it draws.
Type commands in the Listener, the text field after the > symbol. Press Enter to run your code.
Use the up arrow key to put previously entered commands into the Listener field.
If you give the turtle a command it cannot follow, you will see a red error message in the Output box at the bottom.

Here are some commands to use to make designs. Type a number after each move and turn command to control how far it goes.

DRAW - erase the drawing
FD number - move the turtle forward an amount (pixels on the screen)
BK number - move the turtle backward an amount
RT number - turn the turtle to the right a number of degrees
LT number - turn the turtle to the left a number of degrees
SETWIDTH number - set the width of the turtle’s pen
SETPC colorword - set the color of the turtle’s pen, like this: SETPC "BLUE
REPEAT number [commands separated by spaces], like this: REPEAT 4 [FD 50 RT 90]

Search Results for ""