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)
| 7341 | * @see PGraphics#colorMode(int) |
| 7342 | */ |
| 7343 | public void background(int rgb) { |
| 7344 | // if (((rgb & 0xff000000) == 0) && (rgb <= colorModeX)) { |
| 7345 | // background((float) rgb); |
| 7346 | // |
| 7347 | // } else { |
| 7348 | // if (format == RGB) { |
| 7349 | // rgb |= 0xff000000; // ignore alpha for main drawing surface |
| 7350 | // } |
| 7351 | // colorCalcARGB(rgb, colorModeA); |
| 7352 | // backgroundFromCalc(); |
| 7353 | // backgroundImpl(); |
| 7354 | // } |
| 7355 | colorCalc(rgb); |
| 7356 | backgroundFromCalc(); |
| 7357 | } |
| 7358 | |
| 7359 | |
| 7360 | /** |
no test coverage detected