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

Method square

core/src/processing/core/PGraphics.java:2848–2850  ·  view source on GitHub ↗

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 these parameters are interpreted, however, ma

(float x, float y, float extent)

Source from the content-addressed store, hash-verified

2846 * @see PGraphics#rectMode(int)
2847 */
2848 public void square(float x, float y, float extent) {
2849 rect(x, y, extent, extent);
2850 }
2851
2852
2853

Callers

nothing calls this directly

Calls 1

rectMethod · 0.95

Tested by

no test coverage detected