Skip to content

Commit dc49608

Browse files
committed
Put back curvePoint/Tangent
1 parent def4e74 commit dc49608

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
@@ -87,6 +87,13 @@ function addShapes(p5, fn, lifecycles) {
8787
}
8888
}
8989
}
90+
91+
fn.curvePoint = function(...args) {
92+
return this.splinePoint(...args);
93+
}
94+
fn.curveTangent = function(...args) {
95+
return this.splineTangent(...args);
96+
}
9097
}
9198

9299
if (typeof p5 !== undefined) {

0 commit comments

Comments
 (0)