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

Method clear

core/src/processing/core/PGraphics.java:7433–7439  ·  view source on GitHub ↗

Clears the pixels within a buffer. This function only works on PGraphics objects created with the createGraphics() function. Unlike the main graphics context (the display window), pixels in additional graphics areas created with createGraphics() can be entirely or partially tran

()

Source from the content-addressed store, hash-verified

7431 * @webBrief Clears the pixels within a buffer
7432 */
7433 public void clear() {
7434 if (primaryGraphics) {
7435 showWarning("clear() can only be used with createGraphics()");
7436 } else {
7437 background(0, 0, 0, 0);
7438 }
7439 }
7440
7441
7442 protected void backgroundFromCalc() {

Callers

nothing calls this directly

Calls 2

showWarningMethod · 0.95
backgroundMethod · 0.95

Tested by

no test coverage detected