(turtle-new
image)
image.
(turtle-clone
turtle)
turtle
(same position, direction, color, brush, etc.).
(turtle-forward!
turtle
distance)
turtle forward by the specified distance.
(turtle-teleport!
turtle
col
row)
turtle to
(col,row).
Do not draw along the way.
(turtle-face!
turtle
angle)
turtle face the direction specified by
angle (clockwise
from right).
(turtle-turn!
turtle
angle)
turtle clockwise by
angle degrees.
(turtle-down!
turtle)
turtle's brush down. When the turtle
moves forward, it draws with the brush.
(turtle-up!
turtle)
turtle's brush. When
turtle moves forward, it
will not draw.
(turtle-set-brush!
turtle
brush)
turtle draws with.
(turtle-set-brush!
turtle
brush
size)
turtle draws with. The brush must
be one of the resizable brushes.
(turtle-set-color!
turtle
color)
turtle draws.
(turtle-angle
turtle)
(turtle-point
turtle)
(turtle-row
turtle)
(turtle-world
turtle)
turtle
resides.
(turtle-brush
turtle)
(turtle-brush-size
turtle)
(turtle-color
turtle)
(turtle-show!
turtle
angle)
turtle visible, so that it is
displayed after each call to
turtle-forward!,
turtle-turn!,
turtle-teleport!, and
turtle-face!.
Visible turtles are generally much slower.
Useful primarily for novices and for generating interesting
patterns.
(turtle-hide!
turtle
angle)
turtle invisible, so that it is
not displayed. (That is, undoes turtle-show!.)
Copyright © 2007-2014 Janet Davis, Matthew Kluber, Samuel A. Rebelsky, and Jerod Weinman. (Selected materials copyright by John David Stone and Henry Walker and used by permission.)
This material is based upon work partially supported by the National Science Foundation under Grant No. CCLI-0633090. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.
This work is licensed under a
Creative Commons Attribution-NonCommercial 3.0 Unported License
.