Canvas Tutorials

Canvas Methods and Properties

HTML canvas arcTo() Method

HTML canvas arcTo() Method



The arcTo() method is used to create an arc or curve between two tangents on canvas.




Its syntax is:- context.arcTo(x1, y1, x2, y2, r);


Further Explanation:-


Parameter Description
x1 The x-coordinate of the first tangent
y1 The y-coordinate of the first tangent
x2 The x-coordinate of the second tangent
y2 The y-coordinate of the second tangent
r The radius of the arc

Code Explanation

All Tutorials related to Canvas Methods and Properties

All Sections related to Canvas