![]() |
Jupyter at Bryn Mawr College |
|
|
Public notebooks: /services/public/dblank / CS110 Intro to Computing / 2015-Fall / Assignments |
Due before start of class on Monday, September 15, 2015.
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 function 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:
drawMyObject(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 to follow the Code Formatting Standards in your implementation.
What to Hand in: