Skip to content

Commit 2c61f9a

Browse files
authored
Merge pull request #13 from processing/spline-point-tangent
Put back curvePoint/Tangent
2 parents def4e74 + dc49608 commit 2c61f9a

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)