Canvas Confusion | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Canvas Confusion

I understand how to add a canvas, but its purpose I'm not so clear on...

31st Jul 2019, 1:04 AM
Johnny Meyer
Johnny Meyer - avatar
1 Antwort
0
In html in body add <canvas id="canvas"></canvas>, in js - var canvas = document.getElementById("canvas"): var ctx = canvas.getContext("2d");
11th Aug 2019, 12:08 PM
IOph6
IOph6 - avatar