Functional Problem Solving (CSC 151 2014F) : Reference
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Rubric] - [Calendar]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Examples] [Handouts] [Labs] [Outlines] [Readings]
Reference: [Setup] - [Functions A-Z] [Functions By Topic] - [Racket] [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [Davis (2013F)] [Rebelsky (2014S)] [Weinman (2014F)]
Misc: [Submit Questions] - [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Issue Tracker (Course)]
(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!.)