0
CODE: Assignment 5
Below are links to my two different programs written over the weekend. Damn they took a long time!
The first one has simple user interactivity.
Clicking the mouse lets you draw black circles.
If you press “G” you will see a square which changes color with every mouse click.
Press any other key to return to drawing the circles.
The second program is a drawing application.
Press “R” to change the color to red.
Press “G” to change the color to green.
Press “B” to change the color to blue.
“S” and “C” toggles the brush between square and circle shapes.
The UP and DOWN arrows increase and decrease the size of the brush.
The RIGHT and LEFT arrows increase and decrease the alpha channel of the color.
DELETE clears the canvas.
