-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
require describe()
function in p5 sketches?
#5427
Comments
describe()
function?describe()
function in p5 sketches?
I like the idea of nudging users towards including We can definitely go with including The way the reference examples adapt to this will need consideration as well. The examples should already have alt text added on rendering so they won't need to use |
@limzykenneth for the last part here, I think this is in progress, or has been started by @lm-n #5140 |
100% agree on adding it to templates and the editor default template (cc @catarak if they want to comment) I'd like to figure out a way to require or encourage using I'm not opposed to halting the sketch if Curious to hear others' thoughts! Thanks for having this conversation. :) |
I'm all for nudging folks to make their work more accessible and including My initial take is to encourage the use of Side note, I believe the reference for |
I think it's a great idea to add Another way to encourage folks to use |
Just following up on this... would you all be open to receiving PRs that add the |
Certainly! Happy to help with this effort given a little direction. |
Absolutely! I'll create an issue in the editor repository. |
This is all super exciting ❤️ ❤️ ❤️ I'm a bit overwhelmed rn to implement any changes but happy to chat or review code. 🙇 🙏 🙇 🙏 🙇 |
i would, yes! :D |
**Summary:** - This commit converts all the uses of `@alt` I found in 📁`src/color`. - Since `@alt` was not linted for line length while `describe(…)` is, I had to add line breaks to the descriptions for the lint to pass (and allow the commit to go through). **Related Issues & Pull Requests:** - This is a small piece of the checklist described in Issue processing#5139 (by @lm-n). - That issue, in turn, was begun in Pull Request processing#5140 (also by @lm-n). - In Issue processing#5427, the idea requiring this for the inline docs got positive support from several members (including @lmccart, @outofambit, and @catarak).
Are there linter setups available for p5js? For example, eslint in one of my projects will warn me immediately if I don't have an alt tag on my img elements |
@proxycase If it is possible to somehow enforce this using eslint we can include a default .eslintrc file in the p5.js-complete download with such a rule. Although I don't know enough about custom eslint rule to say whether this is even possible or not. |
I was wondering what others think about the idea of potentially requiring a
describe()
line in order for a p5 sketch to run?How would this new feature help [increase access]:
This would increase the accessibility of p5.js sketches for people that are Blind or have visual impairments. Considering the way p5.js use continues to expand in education, as well as other spaces like NFTs, this decision could potentially have a large impact.
It's important to note that this could potentially increase the barrier a bit for those that are new to p5.js. On the other hand, it could be a way to spread awareness, through teachers and documentation that teach what this function is and how to use it. The function itself is very straightforward to use.
As a less intense version of this, it could be that the sketch template includes a describe line, but doesn't require it to run.
Most appropriate sub-area of p5.js?
The text was updated successfully, but these errors were encountered: