var canvasctx = null;
function initCanvas(ww,hh)
{
gCanvas = document.getElementById("canvas");
var w = ww;
var h = hh;
gCanvas.style.width = w + "px";
gCanvas.style.height = h + "px";
gCanvas.width = w;
gCanvas.height = h;
canvasctx = gCanvas.getContext("2d");
canvasctx.clearRect(0, 0, w, h);
// imageData = gCtx.getImageData( 0,0,320,240);
}
var canvasctx = null;
function load() {
initCanvas(1200,800);
document.multitouchData=true;
}
gColor="0,0,0";
function color(rr,gg,bb) {
gColor = rr+","+gg+","+bb;
}
function listenTo(event) {
canvasctx.fillStyle='rgba('+gColor+',.1)';
canvasctx.beginPath();
canvasctx.arc(event.clientX, event.clientY, 20, 0, Math.PI*2, 1);
canvasctx.fill();
canvasctx.closePath();
}
document.addEventListener("MozTouchMove", listenTo, false);
The stable version of Firefox 3.7 that will have full multi-touch support might be released in May-June 2010. It will utilize Gecko 1.9.3 engine.


In order to help HTML5 video to happen on the net, could you use an HTML5 viewer on your blog?
Have a look at the amazing player: http://www.pcinpact.com/actu/news_multi/53640.htm
I have no need to touch my screens but this is still cool.
Amazing! Especially with so little code achieving something so useful.
Well done !
Hello,
This is very cool video. Nice Painted. Wow....
Thanks for sharing info.
Regards,
Mihir
ask4itsolutions.com