Add the describe() function to live examples
@yogitheboss đang làm issue này rồi.
Từ ngày 13/2/2023.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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
- Ngôn ngữ chính
- MDX
- Star
- 90
- Fork
- 122
- Merge trung bình
- 1 giờ 43 phút
- Pull request đã merge (30 ngày)
- 3
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của processing/processing-website
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
processing/processing-website#716 ·
-
Missing isLooping documentation Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
processing/processing-website#703 ·
-
Good First Issue Help Wanted Reference
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
processing/processing-website#698 · 5 bình luận · 1 reaction ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
processing/processing-website#681 · 2 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
processing/processing-website#646 · 3 bình luận ·