Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Documentation fix for swapped parameters in splinePoint and bezierPoint
  • Loading branch information
shawdm committed Jul 27, 2025
commit 3e43484364352b1eed2bf2c4620399b494cc3fef
16 changes: 8 additions & 8 deletions src/shape/curves.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,10 +237,10 @@ function curves(p5, fn){
* between them.
*
* @method bezierPoint
* @param {Number} a coordinate of first control point.
* @param {Number} b coordinate of first anchor point.
* @param {Number} c coordinate of second anchor point.
* @param {Number} d coordinate of second control point.
* @param {Number} a coordinate of first anchor point.
* @param {Number} b coordinate of first control point.
* @param {Number} c coordinate of second control point.
* @param {Number} d coordinate of second anchor point.
* @param {Number} t amount to interpolate between 0 and 1.
* @return {Number} coordinate of the point on the curve.
*
Expand Down Expand Up @@ -684,10 +684,10 @@ function curves(p5, fn){
* between them.
*
* @method splinePoint
* @param {Number} a coordinate of first anchor point.
* @param {Number} b coordinate of first control point.
* @param {Number} c coordinate of second control point.
* @param {Number} d coordinate of second anchor point.
* @param {Number} a coordinate of first control point.
* @param {Number} b coordinate of first anchor point.
* @param {Number} c coordinate of second anchor point.
* @param {Number} d coordinate of second control point.
* @param {Number} t amount to interpolate between 0 and 1.
* @return {Number} coordinate of a point on the curve.
*
Expand Down
Loading