|Commands the active turtle to move forward a specific number of steps||BACK number
|Commands the active turtle to move backwards a specific number of turtle steps|
|Commands the active turtle to turn right a specific number of degrees||LEFT number
|Commands the active turtle to turn right a specific number of degrees|
|CG||Clears the graphics on the current page and returns the active turtle to the center (HOME) of the page with its heading set to 0||STOPALL||Makes all the turtles stop whatever they're doing.
(This is handy!)
|HOME||Instructs the active turtle to move to the center of the page, coordinates [0 0]||SHOW item||Prints out item in the command center.(This is
i.e. SHOW COLOR
|SETH number||Commands the active turtle to set its heading to a specific compass heading (0-360)||SETSH number
|Tells the active turtle to wear a specific costume (shape)
i.e. SETSH "Bird1
|Tells the active turtle to change its pen color to the specified color by specifying the number of a color or its name ie... SETC "RED||SETBG number
|Tells the page to change its background color to the
specified color by specifying the number of a color or its name
i.e. SETBG "RED
|PD||Instructs the active turtle to put its pen down so that it may draw while moving||PU||Instructs the active turtle to lift its pen up so that it does not draw while moving|
|SETX number||Tells the active turtle to slide (left/right) along the X-axis
|SETY number||Tells the active turtle to slide (up/down) along the Y-axis to a specified point|
|Makes the specified turtle or text box current. This command
has the same effect as typing the name of a turtle or text box followed by a comma.
i.e. TTO "T2
|TOWARDS"turtlename||Sets the heading of the current turtle to aim towards the one
name is given as input.
i.e. TOWARDS "T3
|ASK [list of turtles ] [list of instructions ]||Asks a list of turtles to run a specific list of instructions||REPEAT number [list of instructions ]||Asks the turtle to repeat the list of instruction several times.|
|HEADING||Reports the current heading of the active turtle||POS||Reports the current position of the active turtle as a list of two points|
|XCOR||Reports the active turtle's position on the X-axis||YCOR||Reports the active turtle's position on the Y-axis|
|DISTANCE "turtlename||Reports the distance, in turtle steps, from the active turtle to another specified turtle||WHO||Reports the name or number of the active turtle|
|SHAPE||Reports the name or number of the costume the active turtle is currently wearing||COLORUNDER||Reports the name or number of the color underneath the active turtle|
|COLOR||Reports the name or number of the active turtle's pen color||BG||Reports the name or number of the background color of the current page|
Hatching a New Turtle
Putting a Costume (New Shape) on a Turtle
You may also do this under program control by talking to a turtle or turtles (last one
clicked on, created, or addressed via Talkto, Ask, or typing it's name followed by a
1) Type SETSH the.shape.number or the.shape.name
You may give SETSH a list of shapes to automatically flip between. For example:
SETSH [bird1 bird2]
will cause the current turtle to automatically change shapes over and over again in the order they appear in the list.
Resizing a Turtle
Stamping a Turtle's Shape
Giving a Turtle a Script or Editing an Existing One
Programming a Color
Let's paint a picture with the turtle!
Cooler turtle animation (flipbook animation)
Follow the same steps as above, but add a command such as, SETSH [bird1 bird2] FD 5, in the Instruction: line of the turtle.
All the text is gathered from Gary Stager's Logo pages at http://gsep.pepperdine.edu/~gstager/home.html.
Date Modified: 12/10/08
Andrew Begel firstname.lastname@example.org