Functional Problem Solving (CSC 151 2015S) : Outlines
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Taking Notes] [Rubric] - [Calendar]
Current: [Assignment] [EBoard am] [EBoard pm] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards am] [EBoards pm] [Labs] [Outlines] [Readings] - [Examples] [Handouts]
Reference: [Setup] [VM] [Errors] - [Functions A-Z] [Functions By Topic] - [Racket] [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [Davis (2013F)] [Rebelsky (2014F)] [Weinman (2014F)]
Misc: [Submit Questions] - [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Book Office Hours] - [Issue Tracker (Course)]
Held: Wednesday, 11 February 2015
Back to Outline 13 - Raster Graphics and RGB Colors. On to Outline 15 - Boolean Values and Predicate Procedures.
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 ___
___
___)))