@@ -464,9 +464,12 @@ p5.prototype.noCursor = function() {
464464} ;
465465
466466/**
467- * A string variable with the WebGL version in use. The value equals one of
468- * the string constants `WEBGL2`, `WEBGL`, or `P2D`, which is the default for
469- * 2D sketches.
467+ * A string variable with the WebGL version in use. Its value equals one of
468+ * the followin string constants:
469+ *
470+ * - `WEBGL2` whose value is `'webgl2'`,
471+ * - `WEBGL` whose value is `'webgl'`, or
472+ * - `P2D` whose value is `'p2d'`. This is the default for 2D sketches.
470473 *
471474 * See <a href="#/p5/setAttributes">setAttributes()</a> for ways to set the
472475 * WebGL version.
@@ -497,6 +500,7 @@ p5.prototype.noCursor = function() {
497500 * }
498501 *
499502 * function setup() {
503+ * // Create a canvas using WEBGL mode.
500504 * createCanvas(100, 50, WEBGL);
501505 * background(200);
502506 *
@@ -520,6 +524,7 @@ p5.prototype.noCursor = function() {
520524 * }
521525 *
522526 * function setup() {
527+ * // Create a canvas using WEBGL mode.
523528 * createCanvas(100, 50, WEBGL);
524529 *
525530 * // Set WebGL to version 1.
@@ -542,7 +547,7 @@ p5.prototype.webglVersion = C.P2D;
542547/**
543548 * A numeric variable that stores the width of the screen display. Its value
544549 * depends on the current <a href="#/p5/pixelDensity">pixelDensity()</a>.
545- * `displayWidth() ` is useful for running full-screen programs.
550+ * `displayWidth` is useful for running full-screen programs.
546551 *
547552 * Note: The actual screen width can be computed as
548553 * `displayWidth * pixelDensity()`.
0 commit comments