Skip to content

Commit

Permalink
Merge pull request #7110 from JulioGitLab/patch-1
Browse files Browse the repository at this point in the history
Corrects the circle() description
  • Loading branch information
Qianqianye authored Jul 3, 2024
2 parents c3fe401 + 76362d6 commit 51e9760
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/core/shape/2d_primitives.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,12 +490,11 @@ p5.prototype.ellipse = function(x, y, w, h, detailX) {
/**
* Draws a circle.
*
* A circle is a round shape defined by the `x`, `y`, and `d`
* parameters. `x` and `y` set the location of its center. `d` sets its
* width and height (diameter). Every point on the circle's edge is the
* same distance, `d`, from its center. See
* <a href="#/p5/ellipseMode">ellipseMode()</a> for other ways to set
* its position.
* A circle is a round shape defined by the `x`, `y`, and `d` parameters.
* `x` and `y` set the location of its center. `d` sets its width and height (diameter).
* Every point on the circle's edge is the same distance, `0.5 * d`, from its center.
* `0.5 * d` (half the diameter) is the circle's radius.
* See <a href="#/p5/ellipseMode">ellipseMode()</a> for other ways to set its position.
*
* @method circle
* @param {Number} x x-coordinate of the center of the circle.
Expand Down

0 comments on commit 51e9760

Please sign in to comment.