Skip to content

Commit e92d57a

Browse files
authored
Corrects the circle() description
This clarifies that each point on the edge of the circle is half its diameter
1 parent c3fe401 commit e92d57a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/core/shape/2d_primitives.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -490,12 +490,10 @@ p5.prototype.ellipse = function(x, y, w, h, detailX) {
490490
/**
491491
* Draws a circle.
492492
*
493-
* A circle is a round shape defined by the `x`, `y`, and `d`
494-
* parameters. `x` and `y` set the location of its center. `d` sets its
495-
* width and height (diameter). Every point on the circle's edge is the
496-
* same distance, `d`, from its center. See
497-
* <a href="#/p5/ellipseMode">ellipseMode()</a> for other ways to set
498-
* its position.
493+
* A circle is a round shape defined by the `x`, `y`, and `d` parameters.
494+
* `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).
496+
* See <a href="#/p5/ellipseMode">ellipseMode()</a> for other ways to set its position.
499497
*
500498
* @method circle
501499
* @param {Number} x x-coordinate of the center of the circle.

0 commit comments

Comments
 (0)