Skip to content

Commit be8005e

Browse files
committed
circle() and square() reference
1 parent 4607ac2 commit be8005e

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

core/src/processing/core/PApplet.java

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12109,6 +12109,25 @@ public void rect(float a, float b, float c, float d,
1210912109
}
1211012110

1211112111

12112+
/**
12113+
* ( begin auto-generated from square.xml )
12114+
*
12115+
* Draws a square to the screen. A square is a four-sided shape with
12116+
* every angle at ninety degrees and each side is the same length.
12117+
* By default, the first two parameters set the location of the
12118+
* upper-left corner, the third sets the width and height. The way
12119+
* these parameters are interpreted, however, may be changed with the
12120+
* <b>rectMode()</b> function.
12121+
*
12122+
* ( end auto-generated )
12123+
*
12124+
* @webref shape:2d_primitives
12125+
* @param a x-coordinate of the rectangle by default
12126+
* @param b y-coordinate of the rectangle by default
12127+
* @param c width and height of the rectangle by default
12128+
* @see PGraphics#rect(int, int, int, int)
12129+
* @see PGraphics#rectMode(int)
12130+
*/
1211212131
public void square(float x, float y, float extent) {
1211312132
if (recorder != null) recorder.square(x, y, extent);
1211412133
g.square(x, y, extent);
@@ -12203,6 +12222,22 @@ public void arc(float a, float b, float c, float d,
1220312222
}
1220412223

1220512224

12225+
/**
12226+
* ( begin auto-generated from circle.xml )
12227+
*
12228+
* Draws a circle to the screen. By default, the first two parameters
12229+
* set the location of the center, and the third sets the shape's width
12230+
* and height. The origin may be changed with the <b>ellipseMode()</b>
12231+
* function.
12232+
*
12233+
* ( end auto-generated )
12234+
* @webref shape:2d_primitives
12235+
* @param a x-coordinate of the ellipse
12236+
* @param b y-coordinate of the ellipse
12237+
* @param c width and height of the ellipse by default
12238+
* @see PApplet#ellipse(float, float, float, float)
12239+
* @see PApplet#ellipseMode(int)
12240+
*/
1220612241
public void circle(float x, float y, float extent) {
1220712242
if (recorder != null) recorder.circle(x, y, extent);
1220812243
g.circle(x, y, extent);

0 commit comments

Comments
 (0)