Click and drag your mouse around the canvas.

To change the color type the 'r', 'g', or 'b' key. (For red, green, blue.)

To clear the canvas, press the 'q' key.

See the blog post: Processing: RGBoxer