bezier() curves are created using control and anchor points. The first two parameters for the bezier() function specify the first point in the curve and the last two parameters specify the last point. The middle parameters set the control points that define the shape of the curve.
Bezier by p5.js Contributors and the Processing Foundation is licensed under CC BY-NC-SA 4.0.