| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12109,6 +12109,25 @@ public void rect(float a, float b, float c, float d, | |||
| 12109 | 12109 | } | |
| 12110 | 12110 | ||
| 12111 | 12111 | ||
| 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 | + */ | ||
| 12112 | 12131 | public void square(float x, float y, float extent) { | |
| 12113 | 12132 | if (recorder != null) recorder.square(x, y, extent); | |
| 12114 | 12133 | g.square(x, y, extent); | |
@@ -12203,6 +12222,22 @@ public void arc(float a, float b, float c, float d, | |||
| 12203 | 12222 | } | |
| 12204 | 12223 | ||
| 12205 | 12224 | ||
| 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 | + */ | ||
| 12206 | 12241 | public void circle(float x, float y, float extent) { | |
| 12207 | 12242 | if (recorder != null) recorder.circle(x, y, extent); | |
| 12208 | 12243 | g.circle(x, y, extent); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments