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

Method rectMode

core/src/processing/core/PApplet.java:11415–11418  ·  view source on GitHub ↗

Modifies the location from which rectangles are drawn by changing the way in which parameters given to rect() are interpreted. The default mode is rectMode(CORNER) , which interprets the first two parameters of rect() as the upper-left corner of the shape, while the

(int mode)

Source from the content-addressed store, hash-verified

11413 * @see PGraphics#rect(float, float, float, float)
11414 */
11415 public void rectMode(int mode) {
11416 if (recorder != null) recorder.rectMode(mode);
11417 g.rectMode(mode);
11418 }
11419
11420
11421 /**

Callers 1

drawPrimitiveMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected