Lab 1: Introduction to Processing
CS 145: Images and Imagination, Spring 2014


Due Date:
Preliminary work will be looked during class on Jan 15 & 17.
Final submission is due Wed, Jan 22 before class.
This lab is worth 20 points: each image is 10 points and will graded pass-fail.
See policy page for late penalties.

Summary of Goals

Work and Submission File Locations

Becoming Familiar with Processing:

In class, we will go over the Processing environment as well as some of the syntax and behavior of a number of the commands in Processing. At a minimum, be certain that you are familiar with the following basic commands:

Other commands may be found in the Processing reference. For example, you might want to explore creating shapes using arc(), beginShape/endShape, bezier(), curve(). These can be complicated to use so do your best.

Part 1: Creating an Image from a Photo

In this part, you will place a grid over a photograph to determine the coordinates of the basic shapes. More details will be discussed in class. You may use your own photo (you will need to add a grid - ask if you don't know how) or you may use these photos of Waller Hall or Ford Hall (pick the one you want and print it out - a few copies will be available in class).

For example, a very preliminary processing image is here

Be careful which points you mark on the grid. For example, a rectangle using rectMode(Corner) is specified by the (x,y) coordinate in its upper left corner, followed by its width and height. This is what should be marked on the graph.

When you done marking the shapes on the grid, create a new Processing sketch. Save the sketch using a name that relates to the task, e.g. WallerHall.

As you add shapes to your processing sketch, please add comments to your code so we know what each shape (or collection of shapes) represents. For example, label the grass, sky, left side of building, etc.

When done, save your image by using Processing's save command at the end of the sketch, e.g. save("WallerHall.png"). You may use either the png or jpg file format. Usually png looks a bit better but creates a larger file. Try one of each to see if it matters.

Part 2: Creating a "Character"

In this part, you are to start with graph paper (pdf) and sketch out a character using the available Processing shapes. The basic requirements are

Submitting Your Work

Cleaning up: Before turning anything in, please clean up your code as follows (this is important!)

Submission: By the final due date (Jan 22, before class):