HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Canvas Object : Begin a path, move to position 0, 0. Create a line to position 300, 150
The numbers in the table specify the first browser version that fully supports the method.
Method | |||||
---|---|---|---|---|---|
moveTo() | 4.0 | 9.0 | 3.6 | 4.0 | 10.1 |
The moveTo() method moves the path to the specified point in the canvas, without creating a line.
JavaScript syntax: | context.moveTo(x, y); |
---|
Parameter | Description | Play it |
---|---|---|
x | The x-coordinate of where to move the path to | Play it » |
y | The y-coordinate of where to move the path to | Play it » |
❮ Canvas Object