Functional Problem Solving (CSC 151 2016S) : Outlines
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Taking Notes] [Rubric]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Labs] [Outlines] [Readings] - [Examples] [Handouts]
Reference: [Setup] [Remote] [VM] [Errors] - [Functions A-Z] [Functions By Topic] - [Racket] [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [Curtsinger (2016S)] [Davis (2013F)] [Rebelsky (2015F)] [Weinman (2014F)]
Misc: [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Issue Tracker (Course)]
Held: Tuesday, 2 February 2016
Back to Outline 05 - RGB Colors. On to Outline 07 - Transforming Images.
Summary
Today we explore common ways in which to transform colors.
Related Pages
Overview
Administrivia
If you know of other events, please suggest them! (I might not always agree, but it never hurts to ask.)
What does round do?
(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.This example comes from when we covered procedure definitions before covering colors.
(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 ___
___
___)))