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 ответ
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