How to set the rotation (rotate) in a circle?

I have a land feature:
var time = new Date();
 // ctx.rotate( ((2*Math.PI)/60)*time.getSeconds() + ((2*Math.PI)/60000)*time.getMilliseconds() );
ctx.translate(105,0);
 //ctx.fillRect(0,-12,50,24); // Shadow
 ctx.drawImage(earth,-500,-400);


There is an object orbit:

ctx.beginPath();
 ctx.arc(600,600,100,0,Math.PI*2,false); 
 ctx.stroke();


How to make the earth revolved in its orbit?
June 3rd 19 at 19:38
1 answer
June 3rd 19 at 19:40

Find more questions by tags JavaScriptCanvas