
Rotating -Canvas Transformation method
In the previous post, we discussed the canvas translation method and now in this post, we will discuss another transformation method rotate. Using the rotate method we can rotate the canvas element around the origin.
Rotate
This method takes an angle as the parameter and the canvas element is rotated about this angle. This is shown in the figure below.
The rotation point is the origin of the canvas. In order to change the center point, we have to use the translate method.


