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

Method setPrimary

core/src/processing/core/PGraphics.java:730–739  ·  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

728 * else that goes along with that.
729 */
730 public void setPrimary(boolean primary) { // ignore
731 this.primaryGraphics = primary;
732
733 // base images must be opaque (for performance and general
734 // headache reasons.. argh, a semi-transparent opengl surface?)
735 // use createGraphics() if you want a transparent surface.
736 if (primaryGraphics) {
737 format = RGB;
738 }
739 }
740
741
742 public void setPath(String path) { // ignore

Callers 1

makeGraphicsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected