Canvas

Canvas Tutorials

Canvas Methods and Properties

HTML canvas transform() Method

HTML canvas transform() Method

 

 

The transform() method is used to replace the current transformation matrix. It multiplies the current transformation matrix with the matrix described by:
a  c  e
b  d  f
0  0  1

It will only affect drawings made after the transform() method is called.

 

Syntax:-

 

Its syntax is- context.transform(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