Skip to content

Commit ff9e11d

Browse files
committed
Put back beginGeometry/endGeometry
1 parent 55d67ee commit ff9e11d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/shapes.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ function addShapes(p5, fn, lifecycles) {
6363
fn.curve = function(...args) {
6464
return this.spline(...args);
6565
}
66+
67+
fn.beginGeometry = function(...args) {
68+
return this._renderer.beginGeometry(...args);
69+
}
70+
fn.endGeometry = function(...args) {
71+
return this._renderer.endGeometry(...args);
72+
}
6673
}
6774

6875
if (typeof p5 !== undefined) {

0 commit comments

Comments
 (0)