@@ -273,7 +273,7 @@ class Geometry {
273273 *
274274 * // Create a p5.Geometry object.
275275 * // Set its internal color to red.
276- * let myGeometry = buildGeometry(() => {
276+ * let myGeometry = buildGeometry(function() {
277277 * fill(255, 0, 0);
278278 * plane(20);
279279 * });
@@ -336,7 +336,7 @@ class Geometry {
336336 * let saveBtn;
337337 * function setup() {
338338 * createCanvas(200, 200, WEBGL);
339- * myModel = buildGeometry(() => {
339+ * myModel = buildGeometry(function()) {
340340 * for (let i = 0; i < 5; i++) {
341341 * push();
342342 * translate(
@@ -441,7 +441,7 @@ class Geometry {
441441 * let saveBtn2;
442442 * function setup() {
443443 * createCanvas(200, 200, WEBGL);
444- * myModel = buildGeometry(() => {
444+ * myModel = buildGeometry(function() {
445445 * for (let i = 0; i < 5; i++) {
446446 * push();
447447 * translate(
@@ -936,9 +936,9 @@ class Geometry {
936936 * createCanvas(100, 100, WEBGL);
937937 *
938938 * // Create a p5.Geometry object.
939- * beginGeometry();
940- * torus();
941- * myGeometry = endGeometry( );
939+ * myGeometry = buildGeometry(function() {
940+ * torus();
941+ * } );
942942 *
943943 * // Compute the vertex normals.
944944 * myGeometry.computeNormals();
@@ -1679,9 +1679,9 @@ class Geometry {
16791679 * createCanvas(100, 100, WEBGL);
16801680 *
16811681 * // Create a very small torus.
1682- * beginGeometry() ;
1683- * torus(1, 0.25);
1684- * myGeometry = endGeometry( );
1682+ * myGeometry = buildGeometry(function() { ;
1683+ * torus(1, 0.25);
1684+ * } );
16851685 *
16861686 * // Normalize the torus so its vertices fill
16871687 * // the range [-100, 100].
@@ -1794,10 +1794,10 @@ class Geometry {
17941794 * });
17951795 *
17961796 * // Create the Geometry object.
1797- * beginGeometry();
1798- * fill('hotpink');
1799- * sphere(45, 50, 50);
1800- * geo = endGeometry( );
1797+ * geo = buildGeometry(function() {
1798+ * fill('hotpink');
1799+ * sphere(45, 50, 50);
1800+ * } );
18011801 *
18021802 * // Set the roughness value for every vertex.
18031803 * for (let v of geo.vertices){
@@ -2224,9 +2224,9 @@ function geometry(p5, fn){
22242224 * createCanvas(100, 100, WEBGL);
22252225 *
22262226 * // Create a p5.Geometry object.
2227- * beginGeometry();
2228- * torus(30, 15, 10, 8);
2229- * myGeometry = endGeometry( );
2227+ * myGeometry = buildGeometry(function() {
2228+ * torus(30, 15, 10, 8);
2229+ * } );
22302230 *
22312231 * describe('A white torus rotates slowly against a dark gray background. Red spheres mark its vertices.');
22322232 * }
@@ -2293,9 +2293,9 @@ function geometry(p5, fn){
22932293 * createCanvas(100, 100, WEBGL);
22942294 *
22952295 * // Create a p5.Geometry object.
2296- * beginGeometry();
2297- * torus(30, 15, 10, 8);
2298- * myGeometry = endGeometry( );
2296+ * myGeometry = buildGeometry(function() {
2297+ * torus(30, 15, 10, 8);
2298+ * } );
22992299 *
23002300 * // Compute the vertex normals.
23012301 * myGeometry.computeNormals();
@@ -2440,9 +2440,9 @@ function geometry(p5, fn){
24402440 * createCanvas(100, 100, WEBGL);
24412441 *
24422442 * // Create a p5.Geometry object.
2443- * beginGeometry();
2444- * sphere();
2445- * myGeometry = endGeometry( );
2443+ * myGeometry = buildGeometry(function() {
2444+ * sphere();
2445+ * } );
24462446 *
24472447 * describe("A sphere drawn on a gray background. The sphere's surface is a grayscale patchwork of triangles.");
24482448 * }
0 commit comments