CMSC 110 Introduction to Computing

Spring 2015

Professor Blank

Assignment #2

Due before start of class on Monday, February 9, 2015

NO CREDIT FOR LATE SUBMISSIONS

Task: Design a drawable object. This could be whatever you feel like drawing. To draw your object, you should use the following function:

void drawMyObject(float x, float y, float w, float h) {
    ...
}

Insert the name of your object in place of MyObject in the fuction name. Write a program that dynamically or interactively draws several versions of the object in a 500 x 500 sketch. You may use the random number function to generate x, y, w and h values. You can also vary the coloring of the object each time it is drawn. Your sketch should use some interactivity (using the mouse) in some way (you can design whatever interactivity you desire).

You will need to call your function from someplace. For example:

draMyObject(10, 20, 30, 40);

In your overall sketch pay special attention to the aesthetic aspects of your design as well as interactivity. Be sure to use the programming features you have learned in the last week or two.

Design and create your own sketch using Processing. Think of yourself as a creative designer when chosing the topic of your design. Some guidelines:

  • Make sure that the canvas is exactly 500 pixels by 500 pixels.
  • Make use of any of the drawing primitives learned in class in the past week: size, no/smooth, stroke, fill, point, line, rect, triangle, ellipse, quad, begin/endShape, arc, curve, mouseX, mouseY, image, etc.
  • You will be judged on creativity and aesthetics; avoid art that looks too simplistic
  • Your notebook is a way to document this experience; make sure that you include your name, and paragraphs described below

Make sure to follow the Code Formatting Standards in your implementation.

What to Hand in:

  • Include in your notebook a paragraph about the sketch, its inspiration, and how you designed and implemented it.
  • Include a brief discussion about your impressions on working on this assignment.
  • You will submit your homework via the "Submit" button.