Canvas Part 1a
by gmurray
HTML
<canvas id="canvas"></canvas>
JavaScript
$(function () {
var canv, context;
$("#canvas").attr("width", "500px").attr("height", "500px");
canv = $("#canvas")[0];
context = canv.getContext("2d");
function draw() {
context.fillStyle = "rgb(255,0,0)";
context.beginPath();
context.arc(150, 150, 120, 0, 2 * Math.PI, false);
context.fill();
}
draw();
});