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

Method setPrimary

core/src/processing/core/PGraphics.java:744–753  ·  view source on GitHub ↗

Set (or unset) this as the main drawing surface. Meaning that it can safely be set to opaque (and given a default gray background), or anything else that goes along with that.

(boolean primary)

Source from the content-addressed store, hash-verified

742 * else that goes along with that.
743 */
744 public void setPrimary(boolean primary) { // ignore
745 this.primaryGraphics = primary;
746
747 // base images must be opaque (for performance and general
748 // headache reasons.. argh, a semi-transparent opengl surface?)
749 // use createGraphics() if you want a transparent surface.
750 if (primaryGraphics) {
751 format = RGB;
752 }
753 }
754
755
756 public void setPath(String path) { // ignore

Callers 1

makeGraphicsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected