From dc49608c8211c4834a2f9113baf25e25ae60d66a Mon Sep 17 00:00:00 2001 From: Dave Pagurek Date: Sat, 5 Apr 2025 09:40:51 -0400 Subject: [PATCH] Put back curvePoint/Tangent --- src/shapes.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/shapes.js b/src/shapes.js index 0fd686c..ae087b7 100644 --- a/src/shapes.js +++ b/src/shapes.js @@ -87,6 +87,13 @@ function addShapes(p5, fn, lifecycles) { } } } + + fn.curvePoint = function(...args) { + return this.splinePoint(...args); + } + fn.curveTangent = function(...args) { + return this.splineTangent(...args); + } } if (typeof p5 !== undefined) {