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.