Computer Science 110
The Art & Science of Computer Graphics

Mount Holyoke College
Spring 2008


Lecture 19: Advanced Programming; Atmospherics
Date: Monday, April 21, 2008


Agenda

Lecture Assignment

Due at the start of class, Wednesday, April 23.

  1. Write a function that could replace the sinBall function in the SineBall example, but is more flexible. It should take apppropriate parameters that specify the values I have coded in as "50" and "100".
  2. Suppose we wanted to add a ball that falls on the spring in the LoftedSpring example. Describe briefly how you would set up an animation to have a ball fall from the sky onto the spring, have it sit atop the spring as it compresses and uncompresses, then launches back upward when the spring returns to its full size.

Examples