For the assignment involving the mouse interaction, I wanted to attempt to use the mouse position and the mouse button as two different variables.  I started out with drawing a square and making it different colors by clicking the mouse button. After achieving that I decided to also change the shape from a square to a circle when the mouse is pressed. This next step I did was scale the two shapes depending on the position of the mouse.

This picture illustrates what happens when moving the mouse around randomly without the button being clicked.

This pictures show when the mouse button is pressed and held down, while moving the mouse around.

This is a combination of moving the mouse around when the button is pressed and isn’t pressed.


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s