ASSN 4

For this assignment, rather than changing information in the XML file, I tweaked the custom class. I changed the dimensions of the triangles and the velocity at which they moved. I also changed the fill color. Then I went back into the root sketch and applied a mousePressed() function so that when the mouse is pressed, triangles would be created at a rate equal to the frameRate. These triangles would have the same velocity as the original triangles.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s