Draw a cubic Bézier curve

ctx.beginPath();

ctx.moveTo(, );

ctx.bezierCurveTo(, , , , , );

;

The Bézier curve is drawn by connecting the last point in the subpath at (000, 000) to its control point at (000, 000) with a straight line.

Then the second point in the Bézier curve at (000, 000) is connected to its control point at (000, 000) with another straight line.

The first line is tangent to the Bézier curve at (000, 000), and the second line is tangent at (000, 000).