Hi all,
another noob question...
I want to draw an arc based on a percentage 0-100%.
I made an arc based on seconds, and it was really simple:
var seconds = System.getClockTime().sec; var sec=myTop+(360-(seconds*6)); if(sec>360) {sec=sec-360;} if(!hideCircle) { dc.drawArc(centerX, centerY, centerX, cwise , 90, sec); }
Is there a way to make this for percentage?
I've read that I must transform percentage in rad, but I have no idea how to start...
Thank you all :)