processing / processing/processing-website

Add the describe() function to live examples

未关闭
#312 14 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@yogitheboss 已经在做这个了。

开始于 2023年2月13日。

Accessibility Enhancement Examples Good First Issue Help Wanted
主要语言
MDX
星标
90
派生
122
平均合并
1 小时 43 分钟
30 天内合并 PR
3

描述

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:

  1. Go to content/examples/... and navigate to the example folder for which you want to add alt-text.
  2. Locate the liveSketch.js file
  3. In the s.setup function add an s.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 👇

July 30th 2024 edit: added step by step instructions

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。