MCPcopy Index your code
hub / github.com/processing/processing / background

Method background

core/src/processing/core/PGraphics.java:7350–7364  ·  view source on GitHub ↗

( begin auto-generated from background.xml ) The background() function sets the color used for the background of the Processing window. The default background is light gray. In the draw() function, the background color is used to clear the display window at the beginning of each frame

(int rgb)

Source from the content-addressed store, hash-verified

7348 * @see PGraphics#colorMode(int)
7349 */
7350 public void background(int rgb) {
7351// if (((rgb & 0xff000000) == 0) && (rgb <= colorModeX)) {
7352// background((float) rgb);
7353//
7354// } else {
7355// if (format == RGB) {
7356// rgb |= 0xff000000; // ignore alpha for main drawing surface
7357// }
7358// colorCalcARGB(rgb, colorModeA);
7359// backgroundFromCalc();
7360// backgroundImpl();
7361// }
7362 colorCalc(rgb);
7363 backgroundFromCalc();
7364 }
7365
7366
7367 /**

Callers 3

defaultSettingsMethod · 0.95
reapplySettingsMethod · 0.95
clearMethod · 0.95

Calls 3

colorCalcMethod · 0.95
backgroundFromCalcMethod · 0.95
backgroundImplMethod · 0.95

Tested by

no test coverage detected