Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created September 9, 2021 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/2f09b15a068b41594497cfa0891bddd9 to your computer and use it in GitHub Desktop.
Save parzibyte/2f09b15a068b41594497cfa0891bddd9 to your computer and use it in GitHub Desktop.
const $canvas = document.querySelector("#canvas");
const contexto = $canvas.getContext("2d");
// Colocar color blanco en fondo de canvas
contexto.fillStyle = "white";
contexto.fillRect(0, 0, $canvas.width, $canvas.height);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment