Answer the question
In order to leave comments, you need to log in
How to set rotation (rotate) in a circle?
I have an earth object:
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);
ctx.beginPath();
ctx.arc(600,600,100,0,Math.PI*2,false);
ctx.stroke();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question