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.
(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 ___ ___ ___)))
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
You may wish to validate this document's HTML ; ;Samuel A. Rebelsky, firstname.lastname@example.org
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.