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

Method square

core/src/processing/core/PGraphics.java:2751–2753  ·  view source on GitHub ↗

( begin auto-generated from square.xml ) Draws a square to the screen. A square is a four-sided shape with every angle at ninety degrees and each side is the same length. By default, the first two parameters set the location of the upper-left corner, the third sets the width and height. The way the

(float x, float y, float extent)

Source from the content-addressed store, hash-verified

2749 * @see PGraphics#rectMode(int)
2750 */
2751 public void square(float x, float y, float extent) {
2752 rect(x, y, extent, extent);
2753 }
2754
2755
2756

Callers

nothing calls this directly

Calls 1

rectMethod · 0.95

Tested by

no test coverage detected