Computer Science 112
The Art & Science of Computer Graphics

Fall 2015, The College of Saint Rose

Lecture 22: More Functions, Beginning Animation
Date: Wednesday, November 18, 2015


Lecture 22 Assignment

Due at the start of class, Friday, November 20.

Please submit answers to these questions either as a hard copy (typeset or handwritten are OK) or by email to terescoj AT by the start of class. Please use a clear subject line when submitting by email (e.g., CSC 112 Lecture 22 Assignment , Joe Student). We will discuss these questions at the start of class, so no late submissions are accepted.

  1. Write a function lighterHSV, similar in format to the lighterRGB function, that returns a lighter shade of a given HSV color. (5 points)
  2. Suppose you have defined the names a and b to refer to two points in space, and you wish to find the point that is one fourth of the way along the line from a to b. Show a blend function call that will compute this point's coordinates. (5 points)
  3. What is returned by this Ambrosia statement? (Try to figure it out before typing it in - you'll need to be able to do this on an exam.) (3 points)
    morph(5, (0, 50, -100), (100, -150, -100))