Skip to content

Commit 5f220bc

Browse files
committed
fix examples that were not working
1 parent f55350b commit 5f220bc

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

src/accessibility/outputs.js

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import p5 from '../core/main';
3737
* <a href="https://p5js.org/tutorials/writing-accessible-canvas-descriptions/">Writing accessible canvas descriptions</a>
3838
* to learn more about making sketches accessible.
3939
*
40-
*`textOutput()` currently generates descriptions in English only.
40+
* `textOutput()` currently generates descriptions in English only.
4141
* Text drawn with <a href="#/p5/text">text()</a> is not included in
4242
* descriptions. WEBGL mode and 3D shapes are not supported. When rendering
4343
* 2D primitives in WEBGL, descriptions may be imprecise as the camera's
@@ -95,10 +95,12 @@ import p5 from '../core/main';
9595
*
9696
* <div>
9797
* <code>
98-
* function draw() {
98+
* function setup() {
9999
* // Add the text description.
100100
* textOutput();
101+
* }
101102
*
103+
* function draw() {
102104
* // Draw a moving circle.
103105
* background(200);
104106
* let x = frameCount * 0.1;
@@ -115,11 +117,13 @@ import p5 from '../core/main';
115117
*
116118
* <div>
117119
* <code>
118-
* function draw() {
120+
* function setup() {
119121
* // Add the text description and
120122
* // display it for debugging.
121123
* textOutput(LABEL);
124+
* }
122125
*
126+
* function draw() {
123127
* // Draw a moving circle.
124128
* background(200);
125129
* let x = frameCount * 0.1;
@@ -185,7 +189,7 @@ p5.prototype.textOutput = function(display) {
185189
* <a href="https://p5js.org/tutorials/writing-accessible-canvas-descriptions/">Writing accessible canvas descriptions</a>
186190
* to learn more about making sketches accessible.
187191
*
188-
*`gridOutput()` currently generates descriptions in English only.
192+
* `gridOutput()` currently generates descriptions in English only.
189193
* Text drawn with <a href="#/p5/text">text()</a> is not included in
190194
* descriptions. WEBGL mode and 3D shapes are not supported. When rendering
191195
* 2D primitives in WEBGL, descriptions may be imprecise as the camera's
@@ -243,10 +247,12 @@ p5.prototype.textOutput = function(display) {
243247
*
244248
* <div>
245249
* <code>
246-
* function draw() {
250+
* function setup() {
247251
* // Add the grid description.
248252
* gridOutput();
253+
* }
249254
*
255+
* function draw() {
250256
* // Draw a moving circle.
251257
* background(200);
252258
* let x = frameCount * 0.1;
@@ -263,11 +269,13 @@ p5.prototype.textOutput = function(display) {
263269
*
264270
* <div>
265271
* <code>
266-
* function draw() {
272+
* function setup() {
267273
* // Add the grid description and
268274
* // display it for debugging.
269275
* gridOutput(LABEL);
276+
* }
270277
*
278+
* function draw() {
271279
* // Draw a moving circle.
272280
* background(200);
273281
* let x = frameCount * 0.1;

0 commit comments

Comments
 (0)