Functional Problem Solving (CSC 151 2015S) : EBoards
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)]
Overview
irgb-anti-redderirgb-anti-redderWrite a function, that for colors not at the extremes, inverts the
irgb-redder operation. Assume that I might make slight changes
to irgb-redder (and the rest).
irgb-bluer then irgb-greener then irgb-darker
twice. We know that the first two add 32 to individual components,
and the last two subtract 16 for each.
(define irgb-anti-redder (o irgb-darker irgb-darker irgb-greener irgb-bluer))irgb-complement.
(define irgb-anti-redder-2 (o irgb-complement irgb-redder irgb-complement))