MCS-177 Lab: Implementing Computer Graphics

In lab

For this lab, work through section 9.4 in the text, doing exercises 9.14-9.17 (but not 9.18). You will work in pairs and submit one assignment for each pair. You should work with a different partner from lab 5 if at all possible.

As always, be sure to thoroughly test your code. You should test procedures individually and also together. In other words, be sure that images generated by procedures you write for 9.14 through 9.17 can be passed as argument(s) to other procedures.

The following file contains the code from the book relevant to the lab:

  ~mc27/labs/graphics/graphics-system.scm
You should copy it over into your directory to get started.

Once you have defined make-filled-triangle, you can uncomment the definitions of test-bb and nova-bb in the file. However, you have to put those definitions after your definition of make-filled-triangle.

Postlab

Because this lab comes at the end of the semester, you should write up this lab as a collection of four problem solutions. Each solution should contain the code and a description (not merely a transcript) of the testing you did. You do not need to write a formal lab report with an introduction and conclusion.