Destroy
Destroys the canvas, freeing up allocated memory. Once this method is called, the canvas cannot be reused.
canvas.destroy()
Destroys the canvas, freeing up allocated memory. Once this method is called, the canvas cannot be reused.
canvas.destroy()