Week 2 Assignments

For my first assignment, we needed to create circles moving in a diagonal line, from left to right. If we could, get the circles to loop.

From my previous assignment and having made the animated rain, I used “if” statements and variables. As the circles move from left to right, they +1 to the y-axis and -1 to the x-axis. When the circle reaches the bottom of the screen, x-axis becomes 500 once again (like its starting variable).

Circles Moving Diagonally from Gloria Harihar on Vimeo.

Second assignment: Create different strokeWeight as the mouse moves across the screen. Using pmouseX, pmouseY, mouseX, & mouseY, I calculated the absolute value of pmouseX and pmouseY. That determines the stroke. Color is set to random colors of blue and green.

strokeweight from Gloria Harihar on Vimeo.

Third: Created Zoog in accordance with the textbook. His legs move in the opposite direction of the mouse because of pmouse values.

Moving Legs with Zoog from Gloria Harihar on Vimeo.

I created another mini character in accordance with zoog. His legs and eyes move using the “if” statements.

M&M Zoog from Gloria Harihar on Vimeo.

Advertisements

Author: gharihar

Currently a student enrolled at Montclair State.

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