CS151.02 2010S Functional Problem Solving
[Skip to Body]
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.02 2009S (Weinman)]
[CSC151.02 2009S (Davis)]
[CSC151 2009F (Rebelsky)]
Misc:
[SamR]
[MediaScript]
[GIMP]
Back to Raster Graphics and RGB Colors. On to A Design Perspective.
This outline is also available in PDF.
Held: Wednesday, February 10, 2010
Summary: Today we explore common ways in which to transform colors, pixels, and images.
Related Pages:
Notes:
Overview:
(rgb-new red green blue)
- create a new color
(image-set-pixel! image col row color)
- set the color of a pixel
(image-get-pixel image col row)
- get the color of a pixela
(rgb-red color)
- get the red component
(rgb-green color)
- get the green component
(rgb-blue color)
- get the blue component
(color->rgb-list color)
- get a list of the three components
(color->rgb color)
- convert some representations to the
RGB representation.
(define color-transform (lambda (color) (rgb-new ___ ; computation of red component ___ ; computation of green component ___ ; computation of blue component )))
(define only-blue (lambda (color) (rgb-new ___ ___ ___)))
Back to Raster Graphics and RGB Colors. On to A Design Perspective.
[Skip to Body]
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.02 2009S (Weinman)]
[CSC151.02 2009S (Davis)]
[CSC151 2009F (Rebelsky)]
Misc:
[SamR]
[MediaScript]
[GIMP]
Disclaimer:
I usually create these pages on the fly
, which means that I rarely
proofread them and they may contain bad grammar and incorrect details.
It also means that I tend to update them regularly (see the history for
more details). Feel free to contact me with any suggestions for changes.
This document was generated by
Siteweaver on Tue May 11 09:03:08 2010.
The source to the document was last modified on Thu Jan 21 13:05:13 2010.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS151/2010S/Outlines/outline.11.html
.
You may wish to validate this document's HTML ; ;
Samuel A. Rebelsky, rebelsky@grinnell.eduhttp://creativecommons.org/licenses/by-nc/2.5/
or send a letter to Creative Commons, 543 Howard Street, 5th Floor,
San Francisco, California, 94105, USA.