Skip to content

Commit fb187bc

Browse files
authored
Merge pull request #1096 from aashu2006/fix-circle-diameter-doc
fix: correct circle() diameter explanation in Get Started tutorial
2 parents 46bd1c9 + f0dd7cf commit fb187bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/tutorials/en/get-started.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ Some shape functions, such as [`circle()`](/reference/p5/circle), use numbers th
208208

209209
- The first *argument* in the [`circle()`](/reference/p5/circle) function used in the code example above, the number 550, is the x-coordinate of the center point. This means that the center point is located 550 pixels to the right of the left edge of the canvas.
210210
- The second argument, the number 50, is the y-coordinate of the center point. This means that the center point is located 50 pixels below the top edge of the canvas.
211-
- The third argument, the number 100, is the size of the circle (width & height). This means that the circle is 50 pixels wide and 50 pixels high.
211+
- The third argument, the number 100, is the diameter of the circle. This means that the circle is 100 pixels wide and 100 pixels high.
212212

213213
![A diagram of a circle with a center point at (x,y) and diameter “size”. The syntax for the syntax for using the circle function is displayed above the diagram as: “circle(x, y, size);”](../images/introduction/circle-diagram.png)
214214

0 commit comments

Comments
 (0)