Functional Problem Solving (CSC 151 2014F) : Outlines
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] [VM] [Errors] - [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)]
Held: Monday, 22 September 2014
Back to Outline 13 - Testing Your Procedures, Revisited. On to Outline 15 - Transforming Images.
Summary
Today we explore common ways in which to transform colors, pixels, and images.
Related Pages
Overview
Administrivia
(irgb-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(irgb-red color) - get the red component(irgb-green color) - get the green component(irgb-blue color) - get the blue component(color->rgb-list color) - get a list of the three components(color->irgb color) - convert some representations to the
RGB representation.
(define color-transform
(lambda (color)
(irgb-new ___ ; computation of red component
___ ; computation of green component
___ ; computation of blue component
)))
(define only-blue
(lambda (color)
(irgb-new ___
___
___)))