+ 1
Don't understand the parameter of rotate ?
ctx.fillStyle = "#FF0000"; ctx.fillRect(10,10, 100, 100); ctx.rotate( (Math.PI / 180) * 25); //rotate 25 degrees. ctx.fillStyle = "#0000FF"; ctx.fillRect(10,10, 100, 100); what is (Math.PI/180) ? what does this mean?
6 Answers
+ 4
radians
+ 1
1=nig
2=nog
+ 1
radians
+ 1
radians
+ 1
radians
+ 1
radians