CSC151.02 2010S Functional Problem Solving : Reference
Primary: [Front Door] [Schedule] - [Academic Honesty] [Instructions]
Current: [Outline] [EBoard] [Reading] [Lab] - [Assignment] [Quiz]
Groupings: [Assignments] [EBoards] [Examples] [Exams] [Handouts] [Labs] [Outlines] [Projects] [Quizzes] [Readings]
References: [A-Z] [By Topic] - [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [CSC151.01 2010S (Weinman)] [CSC151 2009F (Rebelsky)]
Misc: [SamR] [MediaScript] [GIMP]
drawing-blank
drawing-unit-circle
drawing-unit-square
(drawing-scale
drawing
factor
)
drawing
by factor
. Note that every part of
the drawing is scaled, including both the horizontal and
vertical distance of each component
of the drawing from the origin.
(drawing-hscale
drawing
factor
)
drawing
by factor
. Note that every part of
the drawing is scaled horizontally, including the horizontal
distance of each component of the drawing from the origin.
(drawing-vscale
drawing
factor
)
drawing
by factor
. Note that every part of
the drawing is scaled vertically, including the vertical distance
of each component of the drawing from the origin.
(drawing-hshift
drawing
amt
)
drawing
horizontally by
factor
. If factor
is positive, the drawing is shifted to the right. If
factor
is negative, the drawing is
shifted left by the absolute value of factor
.
(drawing-vshift
drawing
amt
)
drawing
vertically by
factor
. If factor
is positive, the drawing is shifted downward. If
factor
is negative, the drawing is
shifted upward by the absolute value of factor
.
(drawing-recolor
drawing
color
)
drawing
in color
.
Note that even if drawing
contained
colors, the new drawing contains only a single color.
(drawing-fill
drawing
)
drawing
.
Element colors are preserved. After filling, no elements
of the resulting drawing are outlined.
(drawing-compose
list-of-drawings
)
list-of-drawings
. Note that
the drawings are stacked first to last, so the first drawing
in the list is at the bottom and the last in the list is at
the top.
(drawing-join
drawing1
drawing2
)
drawing2
on top of drawing1
.
(drawing-group
drawing1
drawing2
...
drawingn
)
drawing1
is at the bottom and
drawingn
is at the top.
(drawing-left
drawing
)
(drawing-top
drawing
)
(drawing-right
drawing
)
(drawing-bottom
drawing
)
(drawing-width
drawing
)
(drawing-height
drawing
)
(drawing-type
drawing
)
ellipse
for ellipses and circles,
rectangle
for rectangles and squares,
group
for grouped drawings, and
line
for lines (not yet support).
(drawing-color
drawing
)
(drawing->image
drawing
width
height
)
drawing
that
fits in the rectangular region bounded on the left by 0, on
the top by 0, on the right by width
-1
and on the bottom by height
-1.
(drawing?
value
)
value
can be interpreted
as a drawing.
(drawing-blank?
value
)
value
can be interpreted
as a blank drawing.
Primary: [Front Door] [Schedule] - [Academic Honesty] [Instructions]
Current: [Outline] [EBoard] [Reading] [Lab] - [Assignment] [Quiz]
Groupings: [Assignments] [EBoards] [Examples] [Exams] [Handouts] [Labs] [Outlines] [Projects] [Quizzes] [Readings]
References: [A-Z] [By Topic] - [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [CSC151.01 2010S (Weinman)] [CSC151 2009F (Rebelsky)]
Misc: [SamR] [MediaScript] [GIMP]
Copyright (c) 2007-10 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 2.5 License. To view a copy of this
license, visit http://creativecommons.org/licenses/by-nc/2.5/
or send a letter to Creative Commons, 543 Howard Street, 5th Floor,
San Francisco, California, 94105, USA.