CS 117: Introduction to Computer Science

Playing with Graphics

The lab exercises

Each of these programs contains instructions for you. To get started, make sure you have a copy of John Zelle's graphics.py in your working directory. Then save a copy of each of the files listed below in your working directory, open each file in turn, and follow the instructions, trying to answer the questions posed there. You do not need to hand in any of your answers. However, you should try hard to understand how each of the programs works, line by line. Ask questions during lab, in George's session on Sunday, or in class on Monday.

Done with all of that? Read the graphics.py documentation and experiment with features that aren't used in these exercises.

Your assignment, due Monday

Write a program to draw a face. Your drawing should:

I'll give five extra credit points to the two faces I like best. Purely subjective, and you need not compete for such a lowly prize, but if you're so inclined, go wild.

Start early, have fun, and keep in touch.