processing / processing/processing-website
Add the describe() function to live examples
Offen
@yogitheboss arbeitet bereits daran.
Seit 13.2.2023.
Accessibility
Enhancement
Examples
Good First Issue
Help Wanted
- Vorherrschende Sprache
- MDX
- Sterne
- 90
- Forks
- 122
- Ø Merge
- 1 Std. 43 Min.
- Gemergte PRs (30 T.)
- 3
Beschreibung
Since p5.js has a convenient function to make sketches accessible to screen readers, it would be a great idea to use it.
Here's an example of how to do it:
- Go to
content/examples/...and navigate to the example folder for which you want to add alt-text. - Locate the
liveSketch.jsfile - In the
s.setupfunction add ans.describe()function and pass it your alt-text as a string.
For example:
s.describe(
'there are two dark spheres side by side, the cursor works like a light source, when mouse moves the direction of light changes and reveals some part of spheres.'
);
Edit: see for reference 👇
- https://github.com/processing/processing-website#readme
- https://github.com/processing/processing-website/blob/main/docs/examples.md
- https://p5js.org/reference/#/p5/describe
- https://design102.blog.gov.uk/2022/01/14/whats-the-alternative-how-to-write-good-alt-text/
July 30th 2024 edit: added step by step instructions
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.