Functional Problem Solving (CSC 151 2015F) : Outlines
Primary: [Front Door] [Schedule] - [Academic Honesty] [Disabilities] [Email] - [FAQ] [Teaching & Learning] [Grading] [Taking Notes] [Rubric] [Remote Access]
Current: [Assignment] [EBoard] [Lab] [Outline] [Reading]
Sections: [Assignments] [EBoards] [Labs] [Outlines] [Readings] - [Examples] [Handouts]
Reference: [Setup] [VM] [Errors] - [Functions A-Z] [Functions By Topic] - [Racket] [Scheme Report (R5RS)] [R6RS] [TSPL4]
Related Courses: [Curtsinger (2015F)] [Davis (2013F)] [Rebelsky (2015S)] [Weinman (2014F)]
Misc: [Submit Questions] - [SamR] [Glimmer Labs] [CS@Grinnell] [Grinnell] - [Issue Tracker (Course)]
Held: Monday, 7 September 2015
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
Before today's lab (and perhaps before every lab you do for the next week or so), please type the following command in the terminal window.
/home/rebelsky/bin/csc151-update
ceiling gives an inexact output when given an inexact input.(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 ___
___
___)))