You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/data/en.yml
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -358,19 +358,19 @@ learn:
358
358
labeling-canvases-intro-3: functions in your code so your canvases are readible by screen readers and other assistive technology.
359
359
labeling-canvases-what-is-labeling: What is screen reader labeling?
360
360
labeling-canvases-what-is-labeling-1: >-
361
-
The canvas HTML element compresses the visuals created by your p5 code into a bitmap. This
361
+
The canvas HTML element compresses the visuals created by your p5 code into a bitmap (a rastered graphic composed of pixels). This
362
362
bitmap on its own doesn't provide any significant meaning or description about its contents to
363
363
screen readers. That’s why the p5.js <a class = "code" href="https://p5js.org/reference/#/p5/describe">describe()</a>,
364
364
<a class = "code" href="https://p5js.org/reference/#/p5/describeElement">describeElement()</a>, <a class = "code" href="https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a>,
365
365
and <a class = "code" href="https://p5js.org/reference/#/p5/textOutput">textOutput()</a>
366
-
functions exist-- these allow you to manually add screen reader-accessible descriptions to your
366
+
functions exist— these allow you to manually add screen reader-accessible descriptions to your
367
367
code so that screen reader technologies can describe the canvas’ content in a meaningful way.
368
368
labeling-canvases-what-is-labeling-2: >-
369
369
Because a screen reader cannot naturally interpret the contents of a canvas bitmap, these functions
370
370
add labels into your code that instruct the screen reader on how to describe certain elements
371
371
within your canvas.
372
372
labeling-canvases-what-is-labeling-3: >-
373
-
For more further information about p5.js screen reader accessibility, please read
373
+
For more information about p5.js screen reader accessibility, please read
374
374
labeling-canvases-available-labels: Screen reader labels for p5.js
375
375
labeling-canvases-available-labels-1: p5.js offers four different functions for labeling your canvas
376
376
labeling-canvases-available-labels-li-1: >-
@@ -381,7 +381,7 @@ learn:
381
381
This function's parameters include: <span class = "code">name</span>, which affords a string naming the element described; <span class = "code">text</span>, which affords a string of text as the label description;
382
382
and <span class="code">display</span>, an optional parameter to set the visibility of the label.
383
383
labeling-canvases-available-labels-li-3: >-
384
-
<a class = "code" href="https://p5js.org/reference/#/p5/textOutput">textOutput()</a> generates a list providing a canvas description and its (visual) elements, including the canvas' size,
384
+
<a class = "code" href="https://p5js.org/reference/#/p5/textOutput">textOutput()</a> generates a list providing a canvas description and its visual elements, including the canvas' size,
385
385
canvas color, as well as each visual element’s color, position, and the amount of area the element covers within the canvas. This function's only parameter is <span class = "code">display</span>, which is an optional
386
386
parameter to set the visibility of the label.
387
387
labeling-canvases-available-labels-li-4: >-
@@ -426,10 +426,10 @@ learn:
426
426
For canvases without any changing, moving, or interactive elements, you may use either the <a class = "code" href="https://p5js.org/reference/#/p5/describeElement">describeElement()</a>,
427
427
<a class = "code" href="https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a>, or <a class = "code" href="https://p5js.org/reference/#/p5/textOutput">textOutput()</a>
428
428
functions to label the canvas’ visual content. However, keep in mind that <a class = "code" href="https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a> and <a class = "code" href="https://p5js.org/reference/#/p5/textOutput">textOutput()</a> generate their information based on
429
-
the rudimentary code of the visual element, such as its size, color, and shape-- these functions won’t be able to interpret your
429
+
the rudimentary code of the visual element, such as its size, color, and shape. These functions won’t be able to interpret your
430
430
intention in using such a shape within a larger visual built using multiple shapes.
If your canvas contains any animated elements or elements that change their visual form via user input (the click of a button, a
441
441
dropdown selection, etc.), be sure that any descriptions of such elements update with their changes or animations. If you are using
442
-
<a class = "code" href="https://p5js.org/reference/#/p5/textOutput">textOutput()</a> or <a class = "code" href="https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a> to describe the contents of your canvas, so long as these functions are placed within the draw() function, they
442
+
<a class = "code" href="https://p5js.org/reference/#/p5/textOutput">textOutput()</a> or <a class = "code" href="https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a> to describe the contents of your canvas, so long as these functions are placed within the <a class = "code" href ="https://p5js.org/reference/#/p5/draw">draw()</a> function, they
443
443
will automatically update with the shape’s new information. If you are using <a class = "code" href="https://p5js.org/reference/#/p5/describeElement">describeElement()</a>, use concatenation or another form of
444
444
variable input to update the element’s description.
In order to reduce redundancy, be sure to reset the display parameter to <span class="code">FALLBACK</span> once you’ve tested the output. With <span class="code">LABEL</span> active, screen readers will read the fallback text
490
490
and the visible label text when focused on the canvas.
491
-
labeling-canvases-note: Notice any errors or typos? Please let us know. If you would like to contribute to this tutorial, feel free to issue a pull request!
491
+
labeling-canvases-note: Notice any errors or typos? Please let us know. If you would like to contribute to this tutorial, feel free to issue a <a href = "https://github.com/processing/p5.js-website">pull request</a>!
492
492
using-local-server: 'How to set up a local server on Mac OSX, Windows, or Linux.'
493
493
p5js-wiki-title: p5.js wiki
494
494
p5js-wiki: Additonal documentation and tutorials contributed by the community
Copy file name to clipboardExpand all lines: src/data/es.yml
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -370,19 +370,19 @@ learn:
370
370
labeling-canvases-intro-3: functions in your code so your canvases are readible by screen readers and other assistive technology.
371
371
labeling-canvases-what-is-labeling: What is screen reader labeling?
372
372
labeling-canvases-what-is-labeling-1: >-
373
-
The canvas HTML element compresses the visuals created by your p5 code into a bitmap. This
373
+
The canvas HTML element compresses the visuals created by your p5 code into a bitmap (a rastered graphic composed of pixels). This
374
374
bitmap on its own doesn't provide any significant meaning or description about its contents to
375
375
screen readers. That’s why the p5.js <a class = "code" href="https://p5js.org/reference/#/p5/describe">describe()</a>,
376
376
<a class = "code" href="https://p5js.org/reference/#/p5/describeElement">describeElement()</a>, <a class = "code" href="https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a>,
377
377
and <a class = "code" href="https://p5js.org/reference/#/p5/textOutput">textOutput()</a>
378
-
functions exist-- these allow you to manually add screen reader-accessible descriptions to your
378
+
functions exist— these allow you to manually add screen reader-accessible descriptions to your
379
379
code so that screen reader technologies can describe the canvas’ content in a meaningful way.
380
380
labeling-canvases-what-is-labeling-2: >-
381
381
Because a screen reader cannot naturally interpret the contents of a canvas bitmap, these functions
382
382
add labels into your code that instruct the screen reader on how to describe certain elements
383
383
within your canvas.
384
384
labeling-canvases-what-is-labeling-3: >-
385
-
For more further information about p5.js screen reader accessibility, please read
385
+
For more information about p5.js screen reader accessibility, please read
386
386
labeling-canvases-available-labels: Screen reader labels for p5.js
387
387
labeling-canvases-available-labels-1: p5.js offers four different functions for labeling your canvas
388
388
labeling-canvases-available-labels-li-1: >-
@@ -393,7 +393,7 @@ learn:
393
393
This function's parameters include: <span class = "code">name</span>, which affords a string naming the element described; <span class = "code">text</span>, which affords a string of text as the label description;
394
394
and <span class="code">display</span>, an optional parameter to set the visibility of the label.
395
395
labeling-canvases-available-labels-li-3: >-
396
-
<a class = "code" href="https://p5js.org/reference/#/p5/textOutput">textOutput()</a> generates a list providing a canvas description and its (visual) elements, including the canvas' size,
396
+
<a class = "code" href="https://p5js.org/reference/#/p5/textOutput">textOutput()</a> generates a list providing a canvas description and its visual elements, including the canvas' size,
397
397
canvas color, as well as each visual element’s color, position, and the amount of area the element covers within the canvas. This function's only parameter is <span class = "code">display</span>, which is an optional
For canvases without any changing, moving, or interactive elements, you may use either the <a class = "code" href="https://p5js.org/reference/#/p5/describeElement">describeElement()</a>,
439
439
<a class = "code" href="https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a>, or <a class = "code" href="https://p5js.org/reference/#/p5/textOutput">textOutput()</a>
440
-
functions to label the canvas’ visual content. However, keep in mind that <a class = "code" href="https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a> and textOutput() generate their information based on
441
-
the rudimentary code of the visual element, such as its size, color, and shape-- these functions won’t be able to interpret your
440
+
functions to label the canvas’ visual content. However, keep in mind that <a class = "code" href="https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a> and <a class = "code" href="https://p5js.org/reference/#/p5/textOutput">textOutput()</a> generate their information based on
441
+
the rudimentary code of the visual element, such as its size, color, and shape. These functions won’t be able to interpret your
442
442
intention in using such a shape within a larger visual built using multiple shapes.
If your canvas contains any animated elements or elements that change their visual form via user input (the click of a button, a
453
453
dropdown selection, etc.), be sure that any descriptions of such elements update with their changes or animations. If you are using
454
-
<a class = "code" href="https://p5js.org/reference/#/p5/textOutput">textOutput()</a> or <a class = "code" href="https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a> to describe the contents of your canvas, so long as these functions are placed within the draw() function, they
454
+
<a class = "code" href="https://p5js.org/reference/#/p5/textOutput">textOutput()</a> or <a class = "code" href="https://p5js.org/reference/#/p5/gridOutput">gridOutput()</a> to describe the contents of your canvas, so long as these functions are placed within the <a class = "code" href ="https://p5js.org/reference/#/p5/draw">draw()</a> function, they
455
455
will automatically update with the shape’s new information. If you are using <a class = "code" href="https://p5js.org/reference/#/p5/describeElement">describeElement()</a>, use concatenation or another form of
456
456
variable input to update the element’s description.
In order to reduce redundancy, be sure to reset the display parameter to <span class="code">FALLBACK</span> once you’ve tested the output. With <span class="code">LABEL</span> active, screen readers will read the fallback text
502
502
and the visible label text when focused on the canvas.
503
-
labeling-canvases-note: Notice any errors or typos? Please let us know. If you would like to contribute to this tutorial, feel free to issue a pull request!
503
+
labeling-canvases-note: Notice any errors or typos? Please let us know. If you would like to contribute to this tutorial, feel free to issue a <a href = "https://github.com/processing/p5.js-website">pull request</a>!
504
504
using-local-server-title: Usando un servidor local
505
505
using-local-server: 'Cómo configurar un servidor local en Mac OS X, Windows o Linux.'
0 commit comments