Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created September 9, 2021 16:45
Embed
What would you like to do?
const limpiarCanvas = () => {
// Colocar color blanco en fondo de canvas
contexto.fillStyle = COLOR_FONDO;
contexto.fillRect(0, 0, $canvas.width, $canvas.height);
};
limpiarCanvas();
$btnLimpiar.onclick = limpiarCanvas;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment