Canvas reset()
Newly available since 2023-12-11
The reset()
method clears a canvas to its initial state.
To learn more, see
CanvasRenderingContext2D: reset() method at MDN.
Compatibility
- Chrome 99 Released on 2022-03-01
- Chrome Android 99 Released on 2022-03-01
- Edge 99 Released on 2022-03-03
- Firefox 113 Released on 2023-05-09
- Firefox for Android 113 Released on 2023-05-09
- Safari 17.2 Released on 2023-12-11
- Safari on iOS 17.2 Released on 2023-12-11
Specifications
- HTML Standard (#dom-context-2d-reset), from HTML Workstream (WHATWG).