Drawing trick
This just uses the DOM to create a new div with the appropriate color when the mouse moves around. Simple and inefficient.

Reload to clear the screen

Colors:                               

Pen size: 1 2 4 8 16 32

number of divs: 0