Assignment 2

For assignment two I created a relatively simple ellipse script based on the SetupDraw example. My sketch sets up a y variable in relation to the screen’s height and then decreases the value (pushing it up the screen) as it runs through the sketch. I’ve set up a simple if statement that resets it to bottom of the screen when it goes past the top. The y variable becomes the y location coordinate for the ellipse, while the ellipse’s width and height are also proportional to the that variable, so it decreases in size as it moves up the screen.

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