Functional Problem Solving (CSC 151 2014F) : Outlines

Outline 14: Transforming Colors


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

Upcoming Work

Warnings on Today's Lab

Extra Credit Opportunities

Academic

Peer Support

Miscellaneous

Review: RGB Colors

Transforming Colors

An Example

(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 ___
              ___
              ___)))