Skip to content

Commit 1f61661

Browse files
authored
Adding inline docs for (?.)
1 parent 4fe8021 commit 1f61661

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/core/p5.Renderer2D.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ class Renderer2D extends Renderer {
177177
// create background rect
178178
const color = this._pInst.color(...args);
179179

180-
//accessible Outputs
180+
// Add accessible outputs if the method exists; on success,
181+
// set the accessible output background to white.
181182
if (this._pInst._addAccsOutput?.()) {
182183
this._pInst._accsBackground?.(color._getRGBA([255, 255, 255, 255]));
183184
}
@@ -210,7 +211,8 @@ class Renderer2D extends Renderer {
210211
const color = this.states.fillColor;
211212
this._setFill(color.toString());
212213

213-
//accessible Outputs
214+
// Add accessible outputs if the method exists; on success,
215+
// set the accessible output background to white.
214216
if (this._pInst._addAccsOutput?.()) {
215217
this._pInst._accsCanvasColors?.('fill', color._getRGBA([255, 255, 255, 255]));
216218
}
@@ -221,7 +223,8 @@ class Renderer2D extends Renderer {
221223
const color = this.states.strokeColor;
222224
this._setStroke(color.toString());
223225

224-
//accessible Outputs
226+
// Add accessible outputs if the method exists; on success,
227+
// set the accessible output background to white.
225228
if (this._pInst._addAccsOutput?.()) {
226229
this._pInst._accsCanvasColors?.('stroke', color._getRGBA([255, 255, 255, 255]));
227230
}

0 commit comments

Comments
 (0)