Skip to content

Commit

Permalink
Corrects the circle() description
Browse files Browse the repository at this point in the history
This clarifies that each point on the edge of the circle is half its diameter
  • Loading branch information
JulioGitLab authored Jul 2, 2024
1 parent c3fe401 commit e92d57a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/core/shape/2d_primitives.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,12 +490,10 @@ 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 half the distance, `d`, from its center (radius = diameter/2).
* 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 e92d57a

Please sign in to comment.