Since p5.js has a convenient function to make sketches accessible to screen readers, it would be a great idea to use it.
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.'
);
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:
content/examples/...and navigate to the example folder for which you want to add alt-text.liveSketch.jsfiles.setupfunction add ans.describe()function and pass it your alt-text as a string.For example:
Edit: see for reference 👇
July 30th 2024 edit: added step by step instructions