File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -2365,13 +2365,16 @@ function geometry(p5, fn){
2365
2365
* createCanvas(100, 100, WEBGL);
2366
2366
*
2367
2367
* // Create a p5.Geometry object.
2368
- * myGeometry = new p5.Geometry();
2369
- *
2368
+ * myGeometry = buildGeometry(function(){
2369
+ *
2370
2370
* // Create p5.Vector objects to position the vertices.
2371
2371
* let v0 = createVector(-40, 0, 0);
2372
2372
* let v1 = createVector(0, -40, 0);
2373
2373
* let v2 = createVector(0, 40, 0);
2374
2374
* let v3 = createVector(40, 0, 0);
2375
+ *
2376
+ * });
2377
+ *
2375
2378
*
2376
2379
* // Add the vertices to the p5.Geometry object's vertices array.
2377
2380
* myGeometry.vertices.push(v0, v1, v2, v3);
@@ -2404,7 +2407,6 @@ function geometry(p5, fn){
2404
2407
* </code>
2405
2408
* </div>
2406
2409
*/
2407
-
2408
2410
/**
2409
2411
* An array that lists which of the geometry's vertices form each of its
2410
2412
* faces.
You can’t perform that action at this time.
0 commit comments