Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created Sep 9, 2021
Embed
What would you like to do?
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