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

Method shapeMode

core/src/processing/core/PGraphics.java:4072–4074  ·  view source on GitHub ↗

Modifies the location from which shapes draw. The default mode is shapeMode(CORNER) , which specifies the location to be the upper left corner of the shape and uses the third and fourth parameters of shape() to specify the width and height. The syntax shapeMode(CORNERS) uses the

(int mode)

Source from the content-addressed store, hash-verified

4070 * @see PGraphics#rectMode(int)
4071 */
4072 public void shapeMode(int mode) {
4073 this.shapeMode = mode;
4074 }
4075
4076
4077 public void shape(PShape shape) {

Callers 1

styleMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected