Canvas reset()
Newly available since 2023-12-11
The reset()
method clears a canvas to its initial state.
Learning resources on MDN
Browser support
- 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).