To apply a custom transformation matrix to the HTML5 Canvas, we can use the transform() method. This method requires six components of a 3 x 3 matrix according to the following convention:

Code Editor
Modified on April 9th, 2013
by Eric Rowell