Skip to content

Commit 55d67ee

Browse files
committed
Handle rename of curve() to spline()
1 parent 0ca288b commit 55d67ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/shapes.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ function addShapes(p5, fn, lifecycles) {
5959
this._renderer._currentShape.at(-1, -1).handlesClose = () => false;
6060
oldEndShape.call(this, mode);
6161
}
62+
63+
fn.curve = function(...args) {
64+
return this.spline(...args);
65+
}
6266
}
6367

6468
if (typeof p5 !== undefined) {

0 commit comments

Comments
 (0)