CMSC110 (Introduction to Computing)
Fall 2016
Assignment#2
Due by 1:10pm on Wednesday, September 21, 2016 (for RE's section 2)
Due by 12:55pm on Thursday, September 22, 2016 (for DK's section 1)
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. For example,
void drawSpongeBob(float x, float y, float w, float h) {
// Draws Sponge Bob (of width w, height h) with its bottom left corner at <x, y>
...
}
The entire object should be drawn in the body of this function by making use of the parameters (x, y, w, h). As in Assignment#1 make sure that the end result has a pleasing visual appearance as well as exibhits competence in the comprehensive use of drawing, shape, and color functions of processing.
Write a program that 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. If it seems like a good idea for your design 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).
What to produce:
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. Hand in a printout of (2) in class on the due date.
Back to CMSC110 Course Web Page