Description
Increasing Access
Unsure
Most appropriate sub-area of p5.js?
Reference
Feature request details
Change Parameter explination under curvePoint() from:
Parameters
a Number: coordinate of first anchor point.
b Number: coordinate of first control point.
c Number: coordinate of second control point.
d Number: coordinate of second anchor point.
t Number: amount to interpolate between 0 and 1.
To Newer version:
Parameters
a Number: coordinate of first control point.
b Number: coordinate of first anchor point.
c Number: coordinate of second anchor point.
d Number: coordinate of second control point.
t Number: amount to interpolate between 0 and 1.
Reasoning
Under curve() they use:
curve(x1, y1, x2, y2, x3, y3, x4, y4)
-- x1 ------ y1------ x2 --- y2 ----- x3 ----- y3 ----- x4 ----- y4
control, control, anchor anchor, anchor, anchor, control, control
curvePoint() uses:
(If adding a curvePoint() under the X coords)
curvePoint(x1, x2, x3, x4)
control, anchor, anchor, control
But in the explanation, they say it uses:
curvePoint(x2, x3, x1, x4)
anchor, control, control, anchor
This confused me at first since I am new to programming in JavaScript and would like to help others to try not to confuse them
Activity