Canvas Tutorials

Canvas Methods and Properties

HTML canvas quadraticCurveTo() Method

HTML canvas quadraticCurveTo() Method



The quadraticCurveTo() method is used to add a point to the current path by using the specified control points that represent a quadratic Bézier curve.




Its syntax is:- context.quadraticCurveTo(cpx, cpy, x, y);


Further Explanation:-


Parameter Description
cpx The x-coordinate of the Bézier control point
cpy The y-coordinate of the Bézier control point
x The x-coordinate of the ending point
y The y-coordinate of the ending point


Code Explanation

All Tutorials related to Canvas Methods and Properties

All Sections related to Canvas