Thanks for sharing since my professor isn’t that much of a help with this when I never done HTML before
@topureza89454 жыл бұрын
How can I put the vertical line inside a circle? Heres my script: Drawing a clock #myCanvas { border: 1px solid white; } #vertical-line { width: 5px; height: 200px; background-color: red; } function draw() { let ctx = document.getElementById("myCanvas").getContext("2d"); ctx.arc(200, 200, 100, 0, Math.PI * 2, false); // x, y, radius, start angle, end angle, false/true ctx.stroke(); } window.onload = draw;
@virajpradhan92483 жыл бұрын
I liked this video very much as there was no timepass, short and sweet explanation and helps to get it better