|
78 | 78 | "Creates a screen reader-accessible description for the canvas.",
|
79 | 79 | "The first parameter, <code>text</code>, is the description of the canvas.",
|
80 | 80 | "The second parameter, <code>display</code>, is optional. It determines how the description is displayed. If <code>LABEL</code> is passed, as in <code>describe('A description.', LABEL)</code>, the description will be visible in a div element next to the canvas. If <code>FALLBACK</code> is passed, as in <code>describe('A description.', FALLBACK)</code>, the description will only be visible to screen readers. This is the default mode.",
|
81 |
| - "Read <a href=\"/learn/labeling-canvases.html\">How to label your p5.js code</a> to learn more about making sketches accessible." |
| 81 | + "Read <a href=\"/learn/accessible-labels.html\">Writing accessible canvas descriptions</a> to learn more about making sketches accessible." |
82 | 82 | ],
|
83 | 83 | "params": {
|
84 | 84 | "text": "String: description of the canvas.",
|
|
91 | 91 | "The first parameter, <code>name</code>, is the name of the element.",
|
92 | 92 | "The second parameter, <code>text</code>, is the description of the element.",
|
93 | 93 | "The third parameter, <code>display</code>, is optional. It determines how the description is displayed. If <code>LABEL</code> is passed, as in <code>describe('A description.', LABEL)</code>, the description will be visible in a div element next to the canvas. Using <code>LABEL</code> creates unhelpful duplicates for screen readers. Only use <code>LABEL</code> during development. If <code>FALLBACK</code> is passed, as in <code>describe('A description.', FALLBACK)</code>, the description will only be visible to screen readers. This is the default mode.",
|
94 |
| - "Read <a href=\"/learn/labeling-canvases.html\">How to label your p5.js code</a> to learn more about making sketches accessible." |
| 94 | + "Read <a href=\"/learn/accessible-labels.html\">Writing accessible canvas descriptions</a> to learn more about making sketches accessible." |
95 | 95 | ],
|
96 | 96 | "params": {
|
97 | 97 | "name": "String: name of the element.",
|
|
106 | 106 | "A list of shapes follows the general description. The list describes the color, location, and area of each shape. For example, <code>a red circle at middle covering 3% of the canvas</code>. Each shape can be selected to get more details.",
|
107 | 107 | "<code>textOutput()</code> uses its table of shapes as a list. The table describes the shape, color, location, coordinates and area. For example, <code>red circle location = middle area = 3%</code>. This is different from <a href=\"#/p5/gridOutput\">gridOutput()</a>, which uses its table as a grid.",
|
108 | 108 | "The <code>display</code> parameter is optional. It determines how the description is displayed. If <code>LABEL</code> is passed, as in <code>textOutput(LABEL)</code>, the description will be visible in a div element next to the canvas. Using <code>LABEL</code> creates unhelpful duplicates for screen readers. Only use <code>LABEL</code> during development. If <code>FALLBACK</code> is passed, as in <code>textOutput(FALLBACK)</code>, the description will only be visible to screen readers. This is the default mode.",
|
109 |
| - "Read <a href=\"/learn/labeling-canvases.html\">How to label your p5.js code</a> to learn more about making sketches accessible." |
| 109 | + "Read <a href=\"/learn/accessible-labels.html\">Writing accessible canvas descriptions</a> to learn more about making sketches accessible." |
110 | 110 | ],
|
111 | 111 | "params": {
|
112 | 112 | "display": "Constant: (Optional) either FALLBACK or LABEL."
|
|
119 | 119 | "<code>gridOutput()</code> uses its table of shapes as a grid. Each shape in the grid is placed in a cell whose row and column correspond to the shape's location on the canvas. The grid cells describe the color and type of shape at that location. For example, <code>red circle</code>. These descriptions can be selected individually to get more details. This is different from <a href=\"#/p5/textOutput\">textOutput()</a>, which uses its table as a list.",
|
120 | 120 | "A list of shapes follows the table. The list describes the color, type, location, and area of each shape. For example, <code>red circle, location = middle, area = 3 %</code>.",
|
121 | 121 | "The <code>display</code> parameter is optional. It determines how the description is displayed. If <code>LABEL</code> is passed, as in <code>gridOutput(LABEL)</code>, the description will be visible in a div element next to the canvas. Using <code>LABEL</code> creates unhelpful duplicates for screen readers. Only use <code>LABEL</code> during development. If <code>FALLBACK</code> is passed, as in <code>gridOutput(FALLBACK)</code>, the description will only be visible to screen readers. This is the default mode.",
|
122 |
| - "Read <a href=\"/learn/labeling-canvases.html\">How to label your p5.js code</a> to learn more about making sketches accessible." |
| 122 | + "Read <a href=\"/learn/accessible-labels.html\">Writing accessible canvas descriptions</a> to learn more about making sketches accessible." |
123 | 123 | ],
|
124 | 124 | "params": {
|
125 | 125 | "display": "Constant: (Optional) either FALLBACK or LABEL."
|
|
0 commit comments