Canvas Tutorials

Canvas Methods and Properties

HTML canvas translate() Method

HTML canvas translate() Method



The translate() method is used to remaps the (0,0) position on the canvas.




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


Further Explanation:-


Parameter Description
x The value to add to horizontal x-coordinates
y The value to add to vertical y-coordinates

Code Explanation

All Tutorials related to Canvas Methods and Properties

All Sections related to Canvas