Skip to content

Incorrect explanation of circle() size parameter in Get Started tutorial #1095

@aashu2006

Description

@aashu2006

Most appropriate sections of the p5.js website?

Tutorials

What is your operating system?

Linux

Web browser and version

No response

Actual Behavior

In the Get Started tutorial, the explanation of the third parameter of the circle() function is incorrect.

The text states that using circle(550, 50, 100) results in a circle that is “50 pixels wide and 50 pixels high,” which contradicts how circle() works.

Expected Behavior

The tutorial should correctly explain that the third parameter of circle(x, y, d) is the diameter.
A value of 100 means the circle is 100 pixels wide and 100 pixels high.

Steps to reproduce

  1. Open the Get Started tutorial.
  2. Navigate to the section explaining the circle() function.
  3. Read the explanation for the example circle(550, 50, 100).

Would you like to work on the issue?

Yes, I can work on this issue and submit a fix if that’s okay.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions