0

Why this ctx is not working?

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);

9th Jul 2020, 2:03 PM
Ifti
Ifti - avatar
2 Respostas
+ 2
Did you create the ctx variable? Did you get any error? Please link your complete code here.
9th Jul 2020, 2:04 PM
Raj Chhatrala
Raj Chhatrala - avatar
0
I dont know how.Can you give me the complete code
10th Jul 2020, 4:54 AM
Ifti
Ifti - avatar