+ 2

In this example first it put the rotate and after the element why? this confuse me

15th Sep 2017, 2:54 AM
Sergio Bravo Moran
Sergio Bravo Moran - avatar
4 Respostas
+ 5
Where IS the code?
15th Sep 2017, 3:11 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
0
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);
15th Sep 2017, 1:12 PM
Sergio Bravo Moran
Sergio Bravo Moran - avatar
0
this code is in the html5 box 16 second botoon play.
15th Sep 2017, 1:14 PM
Sergio Bravo Moran
Sergio Bravo Moran - avatar
0
thanks for you interesting
15th Sep 2017, 1:14 PM
Sergio Bravo Moran
Sergio Bravo Moran - avatar