Skip to content

Commit

Permalink
circle() description correction update
Browse files Browse the repository at this point in the history
The description of circle() was updated to one that is easier to understand
  • Loading branch information
JulioGitLab authored Jul 3, 2024
1 parent e92d57a commit 76362d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/shape/2d_primitives.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,8 @@ p5.prototype.ellipse = function(x, y, w, h, detailX) {
*
* 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 half the distance, `d`, from its center (radius = diameter/2).
* 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
Expand Down

0 comments on commit 76362d6

Please sign in to comment.