Loop & bg problem

Rioma,
The background turning gray has to do with the fact that you are in Color Mode HSB, not RGB. HSB stands for Hue, Saturation, and Brightness, and so the way to get white would be background(0, 0, 100). RGB stands for Red, Green Blue, so you get colors by combining those. Try background(0, 0, 100) if you want to stay in HSB.