Skip to content

Commit f20ac21

Browse files
committed
Remove example reference to beginGeometry
1 parent 80f3212 commit f20ac21

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/webgl/p5.Geometry.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,10 @@ class Geometry {
273273
*
274274
* // Create a p5.Geometry object.
275275
* // Set its internal color to red.
276-
* beginGeometry();
277-
* fill(255, 0, 0);
278-
* plane(20);
279-
* let myGeometry = endGeometry();
276+
* let myGeometry = buildGeometry(() => {
277+
* fill(255, 0, 0);
278+
* plane(20);
279+
* });
280280
*
281281
* // Style the shape.
282282
* noStroke();

0 commit comments

Comments
 (0)