Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren0
Canvas Confusion
I understand how to add a canvas, but its purpose I'm not so clear on...
1 Antwort
0
In html in body add <canvas id="canvas"></canvas>, in js - var canvas = document.getElementById("canvas"):
var ctx = canvas.getContext("2d");