February 22, 2012
Canvas Draw
<!doctype html>
<html>
<head>
<script>
function draw()
{
var canvas = document.getElementById("canvas");
var context = canvas.getContext("2d");
context.fillStyle = "rgb(100,50,250)";
context.fillRect(0,0,800,400)
context.beginPath()
context.arc(100,100,25,0,2*Math.PI)
context.closePath();
context.stroke();
}
</script>
</head>
<body onload='draw()'>
<canvas id='canvas' width=800 height=400></canvas>
</body>
</html>
author
q9design@squatterz.com