-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Edit docs for color #6219
Comments
Can I help with this? |
Sure! I'll open a pull request with the first batch of edits in a moment. This will give you a sense of how we're approaching the task. In the meantime, please have a look at the guide for contributing documentation and the documentation style guide. |
The next set of functions I had in mind are from the Setting section of the p5.js Reference: background() I start by copying the current documentation into the Hemingway Editor. This helps me to identify complex sentences. It also lets me gauge the simplicity of my edits. I do my best to land around Grade 7. |
Great, looked at your pull request and will make a similar PR with edits to src/color/setting.js |
I see in the color() function, you changed "In this case, an alpha number value as a second argument is not supported, the RGBA form should be used. " to "The version of |
The |
Here's my current progress: main...zelf0:p5.js:edit-color-inline. I'm new to contributing so I may be doing something incorrectly. |
We're always getting it at least a little bit wrong. Keeps things interesting :) This is a great start. Consistency increases accessibility, so I have a few suggestions:
The version of The version of And so on. Let's see how these edits look. You may come up with a simpler/clearer approach as you write. |
Thanks so much for the feedback, I just committed a few tweaks |
Finished the 9 setting functions. Let me know if it looks good and I should submit a PR. main...zelf0:p5.js:edit-color-inline |
Should I submit a pull request? |
These look good! Please go ahead and submit a PR. I'll probably edit them a bit after merging and will tag you to discuss the changes. For a little perspective, I'm writing a calculus book and receive large batches of edits from my editor. We iterated on the opening chapters a few times before we settled on a style. I'm going to revisit some of my earlier edits to the p5.js docs based on ideas I'm borrowing from you. |
Oh also, I noticed we were changing variable declarations in the examples from let to const, so I was doing that as well where applicable, but then I saw in the inline documentation guide says to define all variables with let in code samples, so now I'm wondering whether to change them or not. |
Thanks for pointing this out. Using |
Edit color setting docs. Addresses #6219
Thanks for your help @zelf0! |
Increasing Access
I want to simplify the inline documentation for creating, reading, and setting color. There's also an opportunity to make the wording more consistent. Doing so would increase cognitive accessibility. It would also make documentation more approachable for young learners.
Most appropriate sub-area of p5.js?
Feature enhancement details
I'll make line edits to the inline documentation for this subset of the API.
The text was updated successfully, but these errors were encountered: