@@ -37,7 +37,7 @@ import p5 from '../core/main';
37
37
* <a href="https://p5js.org/tutorials/writing-accessible-canvas-descriptions/">Writing accessible canvas descriptions</a>
38
38
* to learn more about making sketches accessible.
39
39
*
40
- *`textOutput()` currently generates descriptions in English only.
40
+ * `textOutput()` currently generates descriptions in English only.
41
41
* Text drawn with <a href="#/p5/text">text()</a> is not included in
42
42
* descriptions. WEBGL mode and 3D shapes are not supported. When rendering
43
43
* 2D primitives in WEBGL, descriptions may be imprecise as the camera's
@@ -95,10 +95,12 @@ import p5 from '../core/main';
95
95
*
96
96
* <div>
97
97
* <code>
98
- * function draw () {
98
+ * function setup () {
99
99
* // Add the text description.
100
100
* textOutput();
101
+ * }
101
102
*
103
+ * function draw() {
102
104
* // Draw a moving circle.
103
105
* background(200);
104
106
* let x = frameCount * 0.1;
@@ -115,11 +117,13 @@ import p5 from '../core/main';
115
117
*
116
118
* <div>
117
119
* <code>
118
- * function draw () {
120
+ * function setup () {
119
121
* // Add the text description and
120
122
* // display it for debugging.
121
123
* textOutput(LABEL);
124
+ * }
122
125
*
126
+ * function draw() {
123
127
* // Draw a moving circle.
124
128
* background(200);
125
129
* let x = frameCount * 0.1;
@@ -185,7 +189,7 @@ p5.prototype.textOutput = function(display) {
185
189
* <a href="https://p5js.org/tutorials/writing-accessible-canvas-descriptions/">Writing accessible canvas descriptions</a>
186
190
* to learn more about making sketches accessible.
187
191
*
188
- *`gridOutput()` currently generates descriptions in English only.
192
+ * `gridOutput()` currently generates descriptions in English only.
189
193
* Text drawn with <a href="#/p5/text">text()</a> is not included in
190
194
* descriptions. WEBGL mode and 3D shapes are not supported. When rendering
191
195
* 2D primitives in WEBGL, descriptions may be imprecise as the camera's
@@ -243,10 +247,12 @@ p5.prototype.textOutput = function(display) {
243
247
*
244
248
* <div>
245
249
* <code>
246
- * function draw () {
250
+ * function setup () {
247
251
* // Add the grid description.
248
252
* gridOutput();
253
+ * }
249
254
*
255
+ * function draw() {
250
256
* // Draw a moving circle.
251
257
* background(200);
252
258
* let x = frameCount * 0.1;
@@ -263,11 +269,13 @@ p5.prototype.textOutput = function(display) {
263
269
*
264
270
* <div>
265
271
* <code>
266
- * function draw () {
272
+ * function setup () {
267
273
* // Add the grid description and
268
274
* // display it for debugging.
269
275
* gridOutput(LABEL);
276
+ * }
270
277
*
278
+ * function draw() {
271
279
* // Draw a moving circle.
272
280
* background(200);
273
281
* let x = frameCount * 0.1;
0 commit comments