This is an experiment to see whether or not it is possible to create a simple alternative to HTML5 Canvas. To draw rectangles, click somewhere on the canvas and then somewhere else to finish the rectangle. The rectangle will form between the x1, x2, y1, and y2 you clicked at. Switch the mode to Draw and hold down your mouse while drawing. Click any of the colors below to change the color of the pen.