:
var rotation = 0;
function draw(){
var ctx = document.getElementById('myCanvas').getContext('2d');
ctx.globalCompositeOperation = 'destination-over';
ctx.save();
ctx.clearRect(0,0,200,200);
ctx.translate(100,100);
rotation +=1;
ctx.rotate(rotation*Math.PI/64);
ctx.translate(-100,-100);
ctx.drawImage(cog,0,0);
ctx.restore();
}
, , !