MCPcopy Create free account
hub / github.com/benfry/processing4 / rectMode

Method rectMode

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

2653 * @see PGraphics#rect(float, float, float, float)
2654 */
2655 public void rectMode(int mode) {
2656 rectMode = mode;
2657 }
2658
2659
2660 /**

Callers 2

defaultSettingsMethod · 0.95
styleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected