CMSC 110 (Introduction to Computing)
Due before start of class on October 3, 2012
First, read Chapters 1, 2, 3, 4, 5, 6 & 7 from Shifman's text.
Design two objects -- whatever you feel like
drawing. For each object, write a function to draw that object of
the following form:
void drawMyObject(float x, float y, float objectWidth, float
Insert the name of your object in place of "MyObject" in the
name. Since you are drawing two objects, this will result in two
functions, drawMyObject1() and drawMyObject2().
Write a program that draws several versions (at least 3) of each
object in a 500 x 500 sketch. Use the random number function
to generate x, y, objectWidth and objectHeight values, so that the
sketch changes each time it is run. You can also vary the coloring
the object, or any other properties, each time it is drawn.
At least one of your objects must interact with the mouse in two
While you may have an object that follows the mouse (i.e., is
at a location based on mouseX and mouseY), you cannot count this toward
the two interactive components.
Pay special attention to the aesthetic aspects of your design as well as interactivity. Your sketch should be creative!!
What to Hand in: