0
Canvas Confusion
I understand how to add a canvas, but its purpose I'm not so clear on...
1 ответ
0
In html in body add <canvas id="canvas"></canvas>, in js - var canvas = document.getElementById("canvas"):
var ctx = canvas.getContext("2d");
I understand how to add a canvas, but its purpose I'm not so clear on...