p5.js icon indicating copy to clipboard operation
p5.js copied to clipboard

Clarify and remove repetition in arc() reference for start/stop parameters

Open Vedant1816 opened this issue 10 months ago • 5 comments

Increasing access

  • The arc() reference currently repeats the explanation for the fifth and sixth parameters (start and stop) in the same paragraph.

  • As a beginner, this repetition made the section harder to read and a bit confusing, because it felt like two slightly different rules were being introduced when it’s really the same concept.

  • Cleaning this up into a single, clearer explanation would make the reference easier to understand for new users and people learning p5.js for the first time.

Most appropriate sub-area of p5.js?

  • [ ] Accessibility
  • [ ] Color
  • [x] Core/Environment/Rendering
  • [ ] Data
  • [ ] DOM
  • [ ] Events
  • [ ] Image
  • [ ] IO
  • [ ] Math
  • [ ] Typography
  • [ ] Utilities
  • [ ] WebGL
  • [ ] Build process
  • [ ] Unit testing
  • [ ] Internationalization
  • [ ] Friendly errors
  • [ ] Other (specify if possible)

Feature enhancement details

Image

In the arc() reference page, the explanation for the fifth and sixth parameters (start and stop) is repeated in the same section:

“The fifth and sixth parameters, start and stop, set the angles between which to draw the arc…”

This repetition makes the paragraph harder to read and slightly confusing, especially for beginners, because it feels like two separate rules are being introduced when it’s actually the same concept.

I suggest removing the duplicate sentence and rewriting this part as a single, clear explanation of how start and stop work, including how they relate to radians vs degrees when angleMode(DEGREES) is used.

This would improve clarity and make the reference easier to understand for new users.

Vedant1816 avatar Jan 12 '26 10:01 Vedant1816

Hi! I’m new to contributing and would like to work on this issue if it’s available. I’ve set up the dev environment locally. Please assign this to me if it’s okay for me to take this.

Vedant1816 avatar Jan 12 '26 10:01 Vedant1816

Hi @Vedant1816 just a suggestion, if you will check out the docs of random() function, it's got the same thing.

shuklaaryan367-byte avatar Jan 13 '26 08:01 shuklaaryan367-byte

Image Thanks, @shuklaaryan367-byte for the suggestion and absolutely there is a redundancy in random() function docs as well which can be improved for a better p5.js learning experience. I would love to fix the docs for this function along with the above posted issue as well!

Vedant1816 avatar Jan 13 '26 09:01 Vedant1816

Hi @Vedant1816 just saw something, if you will open the docs of Color, there is noStroke reference will should navigate to noStroke function but it navigates to nofill function.

shuklaaryan367-byte avatar Jan 28 '26 08:01 shuklaaryan367-byte

@Vedant1816 you can go ahead with a fix for arc()

limzykenneth avatar Apr 06 '26 20:04 limzykenneth