Description
Objective:
Exercise interaction, variables and functions in Processing.
Tasks:
Design an 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 function name. Write a
program that interactively draws several versions of the object in a 500 x 500 sketch.
Different versions of the object should appear at different positions and have different
sizes. 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).
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. Make sure that your signature is on your sketch!
Start your program with a comment that has your name, the name of the course, and the
title of the assignment:
/** John Smith */
/** CSC220-02 */
/** Lab 1 */
Make sure to follow the Code Formatting Standards in your implementation.
Save your program on the H drive and/or on a memory stick. Create a CSC220 folder
with subfolders for every assignment.
Zip your folder and upload it to Canvas.
Note:
Try to do most of your work in class. Make sure you show me your progress at least
once.
If you’re not done before the end of the class, you have until the deadline to finish and
upload your work to Canvas. No extensions.