4.2.1 Background Colour

The background() function changes the background colour of Processing’s canvas. You’ve probably noticed by now that the default background for the canvas is a light-ish shade of gray, but we can set it to anything we want. The following function call would set the background to white: