Clearing the screen
suggest changeSyntax
- void clearRect(x, y, width, height)
- ImageData createImageData(width, height)
Remarks
clearRect fills with opaque black if the context was created with { alpha: false }. createImageData only allocates a buffer; it does not paint the canvas.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents