004 -- In-Class Exercise (8/30): Copying A Picture

(This exercise is for class on Wednesday 8/30. It will not be graded, but may be discussed.)

From the web, obtain an image you find interesting. It might be a picture of some person, place or thing, or it might be a famous painting, movie still, etcetera. Using only the synthetic drawing tools available in Processing (such as point, line, curve, rect, etc.), "copy" this image. You are not permitted to show the image itself in your applet. Feel free to copy your subject at a different pixel size.

Advanced students: Make your copy responsive to user input. This is as much a conceptual challenge as it is a technical one. What's an interesting dimension to make malleable? For example, different keypresses might turn various layers on or off; an element (such as a mustache) might be adjustable with the mouse, etc. You might also want to experiment with copying your subject in 3D, i.e. with 3D elements like cubes and spheres.

All students:In a comment in your code, provide a link to your original subject image. If your applet is interactive, use Processing's link() command to take us there directly.

Solutions