From e92d57acb02cd2c5b758950ce8bbb54a2ed377fe Mon Sep 17 00:00:00 2001
From: Julio Lab <156870555+JulioGitLab@users.noreply.github.com>
Date: Tue, 2 Jul 2024 14:27:52 -0600
Subject: [PATCH] Corrects the circle() description
This clarifies that each point on the edge of the circle is half its diameter
---
src/core/shape/2d_primitives.js | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/core/shape/2d_primitives.js b/src/core/shape/2d_primitives.js
index 7fa36ee89e..78fd8a23a4 100644
--- a/src/core/shape/2d_primitives.js
+++ b/src/core/shape/2d_primitives.js
@@ -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
- * ellipseMode() 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 ellipseMode() for other ways to set its position.
*
* @method circle
* @param {Number} x x-coordinate of the center of the circle.