curvePoint() documentation?

I’m pretty sure that the documentation for the curvePoint() function in p5.js is wrong. Am I crazy?

It is here:

I think the parameters should be:


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.

looks like

are different but both confused about this.

Make sure to let the devs know :slight_smile: -

There’s now an issue here:

1 Like