Untitled
unknown
plain_text
6 months ago
241 B
2
Indexable
const canvas = document.getElementById("myCanvas"); const ctx = canvas.getContext("2d"); ctx.fillRect(50, 50, 100, 100); // Tegner en firkant ctx.beginPath(); ctx.moveTo(50, 50); ctx.lineTo(150, 150); ctx.stroke(); // Tegner en linje
Editor is loading...
Leave a Comment