ASSN 1: Exercise 2

For this assignment I created an ellipse at the center of the screen. I then used a for loop to offset the ellipse until it ran off the screen. I also wanted to be able to use a mouse function to alter the appearance of the ellipses. First, I integrated a mousePressed function that changed the color of the stroke from blue to red. I then added a function which mimicked the mouse2D example. This created ellipses whose dimensions were controlled by the position of the mouse on the screen. They also followed the mousePressed function to change color.

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