Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
circle() description correction update
The description of circle() was updated to one that is easier to understand
  • Loading branch information
JulioGitLab authored Jul 3, 2024
commit 76362d6e8b29276ee709cb5247974aecaad19f50
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