Your browser does not support the canvas tag.

cool_rectangles

Source code: cool_rectangles

Notes: This is exactly what the title says, cool rectangles. Hover over the above window and you will see that the rectanngle corner follows your mouse. Click in the window and you will see that the origin point of the rectangles are set to where you clicked. Press the C Key to change the color of the rectangles. Press any other key to make the program reset the rectangles.