MCPcopy Index your code
hub / github.com/benfry/processing4 / background

Method background

core/src/processing/core/PApplet.java:14443–14446  ·  view source on GitHub ↗

The background() function sets the color used for the background of the Processing window. The default background is light gray. This function is typically used within draw() to clear the display window at the beginning of each frame, but it can be used inside setup() to set the

(int rgb)

Source from the content-addressed store, hash-verified

14441 * @see PGraphics#colorMode(int)
14442 */
14443 public void background(int rgb) {
14444 if (recorder != null) recorder.background(rgb);
14445 g.background(rgb);
14446 }
14447
14448
14449 /**

Callers 2

setGLSettingsMethod · 0.45
drawMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected