Canvas Rotate
π
2026-06-18 | π HTML
## HTML Canvas `rotate()` Method
The `rotate()` method of the Canvas 2D API rotates the current drawing context.
Understanding how rotation works in HTML5 Canvas is crucial: **the rotation is applied to the canvas coordinate system itself, not to the individual drawn shapes.** Any shapes drawn after calling `rotate()` will be rotated around the current transformation origin (which is `(0,0)` by default).
---
## Browser Support
The `rotate()` method is widely supported across all modern web browsers:
* Google Chrome
* Mozilla Firefox
* Microsoft Edge / Internet Explorer 9+
* Safari
* Opera
*Note: Internet Explorer 8 and earlier versions do not support the `