Canvas Transformations part 2

Canvas Transformations
20
2/3













The rotate() Method
The rotate() method is used to rotate the HTML5 Canvas. The value must be in radians, not degrees.
Here is an example that draws the same rectangle before and after rotation is set:
The rotation will only affect drawings made after the rotation is done.
Comments
Post a Comment