Draw a quadratic Bézier curve

ctx.beginPath();

ctx.moveTo(, );

ctx.quadraticCurveTo(, , , );

;

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 control point in the Bézier curve is connected to the second 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).