CST112 Project 3: Chapter 4
-
Design some object of your own (this should be a different object
than the ones you created for Projects 1 and 2) that moves around
the Processing output window as follows:
- The size of the output window should be 400 by 400 pixels
-
The object should move starting from the upper-left corner of the output
window down and to the right by one (1) pixel each time it draws toward
the lower-right corner
(
You will receive a maximum of 8 points out of 10
if you complete this much of the assignment successfully
)
-
For "additional points" do either or both of the following:
-
For one (1) additional point of credit,
when the mouse button is clicked:
-
Assign random values within ranges of your choosing for the colors
that control the RGB fill color of the major parts of your object
that make it lighter or darker than its original color
-
Subtract ten (10) from the background color of the output window so
that it gets a little darker each time the mouse button is clicked
-
For one (1) additional point of credit,
every time any key on the keyboard is clicked, the object should change
directions; if it is going to the right and down, it should reverse going
to the left and up; if it already is going to the left and up, it should
reverse going to the right and down
-
Full credit (10 points out of a maximum of ten) will
be given for successfully completing all parts of this assignment
-
Click this Play Project 3
link to view a sample application that shows all the different effects
(this is the full credit version with a "Smiley Face")
-
You may use images (stored in object variables declared from the PImage
class) in your sketch as follows:
- As an image object in the background
()
function
-
Defined as smaller images within the output window, but they may not
used as the object that is manipulated in the animation
-
Insert the project number, your name and the name(s) of your
teammate(s), your e-mail address, the submission due date and
one or two sentences that describe the sketch as comments
at the beginning of the program (the same as you did for Projects 1 and 2);
additionally comment each of the groups of variable declarations as
well as the sections of code
-
Students may work on all projects in teams of two or three,
and, if so, all students in the group must submit the same project to their own dropboxes
in Blackboard. In the text box's dropbox, as well as in the source code documentation
(comments), state the name(s) of the classmate(s) with whom you worked.
-
The completed project archived into a ".ZIP" file submitted
electronically via an attachment to a
Brightspace
dropbox is due to Prof. Struck no later than 11:59 p.m. on the date
listed in the course outline.