Skip to content

Instantly share code, notes, and snippets.

View andreuestanyalonso's full-sized avatar

andreuestanyalonso

View GitHub Profile
// Dibuixar: rectangle, circunferència, polígon (triangle)
// Functions
const canvas = document.getElementById("tutorial");
const context = c anvas.getContext("2d");
// Rectangle de fons
function drawBackground() {
// width="640" height="480"