draw
function draw()
{
var canvas = document.getElementById('blob');
if(canvas.getContext == null)
{
return;
}
var ctx = canvas.getContext('2d');
ctx.clearRect(0, 0, width, height);
env.draw(ctx, scaleFactor);
blobColl.draw(ctx, scaleFactor);
}
function timeout()
{
draw();
update();
if(stopped == false)
{
setTimeout('timeout()', 30);
}
}