canvas005
by catfood
HTML
<canvas width="500" height="500" id="canvas"></canvas>
JavaScript
var canvas = document.getElementById('canvas');
var ctx = canvas.getContext('2d');
var i=0;
setTimeout(function(){
ctx.clearRect(0,0,500,500);
ctx.fillRect(i,0,100,100);
i += 4;
setTimeout(arguments.callee, 20);
},1);