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

Method setSize

core/src/processing/core/PGraphics.java:763–771  ·  view source on GitHub ↗

The final step in setting up a renderer, set its size of this renderer. This was formerly handled by the constructor, but instead it's been broken out so that setParent/setPrimary/setPath can be handled differently. Important: this is ignored by the Methods task because otherwise it will overri

(int w, int h)

Source from the content-addressed store, hash-verified

761 * animation thread.
762 */
763 public void setSize(int w, int h) { // ignore
764 width = w;
765 height = h;
766
767 pixelWidth = width * pixelDensity;
768 pixelHeight = height * pixelDensity;
769
770 reapplySettings = true;
771 }
772
773
774// /**

Callers 1

makeGraphicsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected