CMSC110 (Introduction to Computing)

Fall 2010

Assignment#2

Due before start of class on Thursday, September 16, 2010

First, read Chapters 1, 2, 3, 4 & 5 from Shifman's text.

Task: Using variables, design an object that uses the drawing primitives learned so far (you have to use at least three or more in your design as well as three or more colors/shades), so that you can place/draw the object anywhere based on a single anchor point. You should also be able to scale the size of the object using variables for width and height. Here are some general guidelines:

// Assignment #
// Name: Your Name
// E-mail: your e-mail address 
// Date: Date of submission 


float x, y, w, h; // these are the coordinates of the top left corner <x, y>, 
					//and the width (w) and height (h) of the enclosing rectangle
void setup() {

	// set the screen size and all other drawing directives


	// set the x, y, w, h to some specific values
	x = ...;

	y = ...;

	w = ...;

	h = ...;
}
void draw() {

	// draw the object so that its top left corner is at ,x, y> and is of size w x h
}  


void mousePressed() {


	// set x, y, w, h to some new value(s)

}

Design an aesthetically pleasing object shape. Look at the images of the artist Giorgio Morandi's work. Try and imitate objects from it for your design.

Extra Credit: Animate your object in some meaningful and aesthetic way that is relevant to your design.

What to Hand in: Hand in the entire sketch folder in your Dropbox folder. In addition to the sketch/programs also include; (1) a gif/jpg/png image of your finished sketch. (2) A formatted write-up with Page#1 showing your sketch, followed by a title, your name, a short 1-2 line description (as discussed in class) on page#1, and a short 1-2 paragraph more detailed description of the sketch and your personal experiences working on this sketch.

Back to CMSC110 Course Web Page