Skip to content

Commit 76362d6

Browse files
authored
circle() description correction update
The description of circle() was updated to one that is easier to understand
1 parent e92d57a commit 76362d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/shape/2d_primitives.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,8 @@ p5.prototype.ellipse = function(x, y, w, h, detailX) {
492492
*
493493
* A circle is a round shape defined by the `x`, `y`, and `d` parameters.
494494
* `x` and `y` set the location of its center. `d` sets its width and height (diameter).
495-
* Every point on the circle's edge is half the distance, `d`, from its center (radius = diameter/2).
495+
* Every point on the circle's edge is the same distance, `0.5 * d`, from its center.
496+
* `0.5 * d` (half the diameter) is the circle's radius.
496497
* See <a href="#/p5/ellipseMode">ellipseMode()</a> for other ways to set its position.
497498
*
498499
* @method circle

0 commit comments

Comments
 (0)