Functional Problem Solving (CSC 151 2015F) : Outlines

Outline 06: Transforming Colors


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

Upcoming Work

Extra Credit Opportunities

Academic

Peer Support

Notes on Quiz 1

Review: RGB Colors

Transforming Colors

Building New Transformations

An Old Example

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