The moveTo() method is used to moves the path to the specified point (20,40) in the canvas.
A quadratic parametric curve requires two points. The first point is a control point (30,100) that is used in the quadratic parametric calculation and the second point is the ending point (200,30) for the curve.
The stroke() method is used to draws a path by using moveTo() and quadraticCurveTo() methods.
Output for quadraticCurveTo() Method in HTML5 Canvas:
The canvas rectangle with blue color border.
The quadratic parametric curve is displayed on the canvas.
Start point(20,40)
Control point(30,100)
End point(200,30)
Browser Support for quadraticCurveTo() Method in HTML5 Canvas: