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

Method setSize

core/src/processing/core/PGraphics.java:777–790  ·  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 override s

(int w, int h)

Source from the content-addressed store, hash-verified

775 * animation thread.
776 */
777 public void setSize(int w, int h) { // ignore
778 width = w;
779 height = h;
780
781 /** {@link PImage.pixelFactor} set in {@link PImage#PImage()} */
782 pixelWidth = width * pixelDensity;
783 pixelHeight = height * pixelDensity;
784
785// if (surface != null) {
786// allocate();
787// }
788// reapplySettings();
789 reapplySettings = true;
790 }
791
792
793// public void setSmooth(int level) {

Callers 1

makeGraphicsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected