Canvas

Canvas Tutorials

Canvas Methods and Properties

HTML canvas moveTo() Method

HTML canvas moveTo() Method

 

 

The moveTo() method moves the path to the specified point in the canvas, without creating a line. We have to use stroke() method to draw the path on canvas.

 

Syntax:-

 

Its syntax is- context.moveTo(x,y);

 

Further Explanation:-

 

Parameter Description
x The x-coordinate of where to move the path to
y The y-coordinate of where to move the path to

Code Explanation

All Tutorials related to Canvas Methods and Properties

All Sections related to Canvas