Turtles
Building Turtles
-
(turtle-newimage) - MediaScheme Turtle Constructor.
Build a new turtle that draws on
image. -
(turtle-cloneturtle) - MediaScheme Turtle Constructor.
Make a clone of
turtle(same position, direction, color, brush, etc.).
Moving Turtles
-
(turtle-forward!turtledistance) - MediaScheme Turtle Procedure.
Moves
turtleforward by the specified distance. -
(turtle-teleport!turtlecolrow) - MediaScheme Turtle Procedure.
Move
turtleto (col,row). Do not draw along the way. -
(turtle-face!turtleangle) - MediaScheme Turtle Procedure.
Make
turtleface the direction specified byangle(clockwise from right). -
(turtle-turn!turtleangle) - MediaScheme Turtle Procedure.
Rotate
turtleclockwise byangledegrees.
Drawing with Turtles
-
(turtle-down!turtle) - MediaScheme Turtle Procedure.
Put
turtle's brush down. When the turtle moves forward, it draws with the brush. -
(turtle-up!turtle) - MediaScheme Turtle Procedure.
Lifts
turtle's brush. Whenturtlemoves forward, it will not draw. -
(turtle-set-brush!turtlebrush) - MediaScheme Turtle Procedure.
Set the brush that
turtledraws with. -
(turtle-set-brush!turtlebrushsize) - MediaScheme Turtle Procedure.
Set the brush (including the brush size) that
turtledraws with. The brush must be one of the resizable brushes. -
(turtle-set-color!turtlecolor) - MediaScheme Turtle Procedure.
Set the color in which
turtledraws.
Getting Information About Turtles
-
(turtle-angleturtle) - MediaScheme Turtle Procedure. Get the angle that the turtle faces.
-
(turtle-pointturtle) - MediaScheme Turtle Procedure. Get the point at which the turtle resides.
-
(turtle-rowturtle) - MediaScheme Turtle Procedure. Get the row of the point at which the turtle resides.
-
(turtle-worldturtle) - MediaScheme Turtle Procedure.
Determine the world on which
turtleresides. -
(turtle-brushturtle) - MediaScheme Turtle Procedure. Get the brush the turtle uses to draw.
-
(turtle-brush-sizeturtle) - MediaScheme Turtle Procedure. Get the size of the brush that the turtle uses to draw.
-
(turtle-colorturtle) - MediaScheme Turtle Procedure. Get the color of the brush that the turtle uses to draw.
Miscellaneous Turtle Procedures
-
(turtle-show!turtleangle) - MediaScheme Turtle Procedure.
Make
turtlevisible, so that it is displayed after each call toturtle-forward!,turtle-turn!,turtle-teleport!, andturtle-face!. Visible turtles are generally much slower. Useful primarily for novices and for generating interesting patterns. -
(turtle-hide!turtleangle) - MediaScheme Turtle Procedure.
Make
turtleinvisible, so that it is not displayed. (That is, undoesturtle-show!.)