Functional Problem Solving (CSC 151 2016S) : Outlines

Outline 06: Transforming Colors


Held: Tuesday, 2 February 2016

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

Reminders

Upcoming Work:

Extra Credit

If you know of other events, please suggest them! (I might not always agree, but it never hurts to ask.)

Academic

Peer

Questions from Sam

What does round do?

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