Functional Problem Solving (CSC 151 2015S) : Outlines

Outline 14: Transforming Colors


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

Upcoming Work

Extra Credit Opportunities

Academic

Peer Support (Morning Section)

Peer Support (Afternoon Section)

Recommended, But no EC

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