CS 110 (Introduction to Computing)

Spring 2016

Assignment #3

Due by 2:25 pm on Thursday, February 25, 2016

Task: Design a sketch of your choice. Write functions to draw iconic shapes that will be in your scene. Each of your functions should have parameters to specify the location and size of the shape as well as at least one other feature. For example, you could use an x and a y that define the starting location (center or corner) of the shape, a scale factor (or two if you wish to scale in both x and y directions independently), a color. Function-drawn shapes should draw properly no matter where on screen, and what scale factor is used.

Ideas for additional features as parameters in your shape:

Potential ways to specify location:

Potential ways to specify size:

Design at least two complex shapes that are drawn via functions. You should use at least one function per shape, but likely more as it is advisable to build complex shapes from simpler basic shapes, which are drawn via simpler functions. For example, if you decide to write a function to draw the Park Science Building (or any building), it will probably be a good idea to have a function that draws a window with parameterized location, size and shape, and probably more for such things as the roof, the doors, etc. For each complex shape, show variations of location/size of the shape via multiple function calls.

Requirements:

What to produce:

  1. The program
  2. A write-up with your name, course and assignment number and a paragraph about the sketch, its inspiration, and how you designed and implemented it. Include a brief discussion about your experience working on this assignment. It should be a separate document and left in the sketch folder.
  3. A gif/jpg/png image of your sketch. Place in the sketch folder.
What to Hand in:
  1. Submit a hard copy of 1, 2 and 3. This hard copy is due at the start of class on the due date.
  2. Submit an electronic copy of the entire sketch folder (including any images that you may have used), the screenshot and the writeup via Dropbox shared folder as usual. Please place the screenshot and write-up in the sketch folder.

Carefully read the Assignment Submission Policy for how to submit your assignment.