Click and hold on the mouse to draw. Use the up and down arrow keys to change the thickness of the "brush". Use the W and S keys to select a color. The R and F keys make the "paint" brighter and darker, respectively. Press the spacebar to clear the "canvas". Use the 0 key to restore the "brush" to its original values.
I made this project myself in approximately two hours.