I’m pretty sure that the documentation for the curvePoint()
function in p5.js is wrong. Am I crazy?
It is here:
https://p5js.org/reference/#/p5/curvePoint
I think the parameters should be:
Parameters
a
Number: coordinate of first control point
b
Number: coordinate of first point on the curve
c
Number: coordinate of second point on the curve
d
Number: coordinate of second control point
t
Number: value between 0 and 1
So, the points on the curve are values 2 and 3, not 1 and 4. That would be more similar to the curve()
function.