html5 canvas
HTML5 canvas example
var mycanvas = document.getElementById("mycanvas");
var mycontext = mycanvas.getContext("2d");
mycontext.beginPath();
mycontext.moveTo(10, 10);
mycontext.lineTo(35, 35);
mycontext.strokeStyle = "#000";
mycontext.stroke();
mycontext.beginPath();
mycontext.arc(35, 25, 10, 0, Math.PI * 2, true);
mycontext.fillStyle = "#f00";
mycontext.fill();
# code from html5 cookbook