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.
Related Examples

No alt text
Color Interpolation
Fade between two colors.

No alt text
Color Wheel
Create a visualization of the color spectrum.

No alt text
Bezier
Draw a set of curves.

No alt text
Kaleidoscope
Draw mirrored designs with the mouse.

No alt text
Noise
Generate naturalistic textures using Perlin noise.

No alt text
Recursive Tree
Draw a tree using a function that calls itself.