@@ -2729,7 +2729,25 @@ protected void rectImpl(float x1, float y1, float x2, float y2,
2729
2729
endShape (CLOSE );
2730
2730
}
2731
2731
2732
-
2732
+ /**
2733
+ * ( begin auto-generated from square.xml )
2734
+ *
2735
+ * Draws a square to the screen. A square is a four-sided shape with
2736
+ * every angle at ninety degrees and each side is the same length.
2737
+ * By default, the first two parameters set the location of the
2738
+ * upper-left corner, the third sets the width and height. The way
2739
+ * these parameters are interpreted, however, may be changed with the
2740
+ * <b>rectMode()</b> function.
2741
+ *
2742
+ * ( end auto-generated )
2743
+ *
2744
+ * @webref shape:2d_primitives
2745
+ * @param a x-coordinate of the rectangle by default
2746
+ * @param b y-coordinate of the rectangle by default
2747
+ * @param c width and height of the rectangle by default
2748
+ * @see PGraphics#rect(int, int, int, int)
2749
+ * @see PGraphics#rectMode(int)
2750
+ */
2733
2751
public void square (float x , float y , float extent ) {
2734
2752
rect (x , y , extent , extent );
2735
2753
}
@@ -2910,7 +2928,22 @@ protected void arcImpl(float x, float y, float w, float h,
2910
2928
showMissingWarning ("arc" );
2911
2929
}
2912
2930
2913
-
2931
+ /**
2932
+ * ( begin auto-generated from circle.xml )
2933
+ *
2934
+ * Draws a circle to the screen. By default, the first two parameters
2935
+ * set the location of the center, and the third sets the shape's width
2936
+ * and height. The origin may be changed with the <b>ellipseMode()</b>
2937
+ * function.
2938
+ *
2939
+ * ( end auto-generated )
2940
+ * @webref shape:2d_primitives
2941
+ * @param a x-coordinate of the ellipse
2942
+ * @param b y-coordinate of the ellipse
2943
+ * @param c width and height of the ellipse by default
2944
+ * @see PApplet#ellipse(float, float, float, float)
2945
+ * @see PApplet#ellipseMode(int)
2946
+ */
2914
2947
public void circle (float x , float y , float extent ) {
2915
2948
ellipse (x , y , extent , extent );
2916
2949
}
0 commit comments