+ 1
Please answer to this question? ????
Please can anyone help me. I had successfully designed the clock myself but I can't understand that how can I put numbers in my clock I had checked from w3schools but didn't understand here is the site plz check and know me also bro https://www.w3schools.com/graphics/canvas_clock_numbers.asp Check this code also https://code.sololearn.com/WwMEss9MMDe8/?ref=app
4 odpowiedzi
+ 6
https://code.sololearn.com/W7mgkJYsbfeW/?ref=app
+ 2
Check my code I hope you can understand
https://code.sololearn.com/WcDqaUjzMJdO/?ref=app
+ 1
yeah bro this is answer but bro can u explain it plz.
+ 1
there is no problem in code
for(num = 1; num < 13; num++){
ang = num * Math.PI / 6;
ctx.rotate(ang);
ctx.translate(0, -radius*0.85);
ctx.rotate(-ang);
ctx.fillText(num.toString(), 0, 0);
ctx.rotate(ang);
ctx.translate(0, radius*0.85);
ctx.rotate(-ang);
}
for eg. why we uav used Math.PI, rotate, what is meaning of -ang,why we hav divide Math.PI/6 not by 7 or 5.plz tell me bro