Canvas Tutorials

Canvas Methods and Properties

HTML canvas setTransform() Method

HTML canvas setTransform() Method



The setTransform() method is used to resets the current transform to the identity matrix and then runs transform() with the same arguments. It will only affect drawings made after the setTransform method is called.




Its syntax is- context.setTransform(a,b,c,d,e,f);


Further Explanation:-


Parameter Description
a Horizontal scaling
b Horizontal skewing
c Vertical skewing
d Vertical scaling
e Horizontal moving
f Vertical moving

Code Explanation

All Tutorials related to Canvas Methods and Properties

All Sections related to Canvas