Skip to content

Instantly share code, notes, and snippets.

@mstudio
Created February 14, 2012 21:13
Show Gist options
  • Save mstudio/1830496 to your computer and use it in GitHub Desktop.
Save mstudio/1830496 to your computer and use it in GitHub Desktop.
HTML5 clear canvas
// this:
context.clearRect(0, 0, width, height);
// or:
canvas.width = canvas.width;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment