Canvas draw cirle example

Canvas draw circle example for COMP1021

by scsswil

HTML

<canvas id="canvasID" width="200" height="100" style="border:1px solid #d3d3d3;">
  Your browser does not support the canvas element.
</canvas>

JavaScript

var canvas = document.getElementById("canvasID");
var graphics = canvas.getContext("2d");
graphics.font = "30px Arial";
graphics.fillStyle = "blue";
graphics.fillText("Hello World!!!",15,50);