Hi gentlemen.
I'm sorry to start this thread, but I need help with this feature:
I divided the Circle into 12 segments and every 5 seconds I fill in one segment, a total of 60 seconds = 1 minute. The problem is that my last segment is not filling up. Please advise where there may be a mistake?
I enclose an example of a function, including an error.
Thank you for your help
function drawCircle(dc) {
var handWidth = dc.getWidth();
var position = System.getClockTime().sec /5; RATIO;
dc.setPenWidth(handWidth/18.3);
for (var i = 0; i < 12; ++i) {
if (i < position)
{
dc.setColor(Graphics.COLOR_BLACK, Graphics.COLOR_BLACK);
}
else
{
dc.setColor(Graphics.COLOR_LT_GRAY, Graphics.COLOR_BLACK);
}
var start = 360 - ( 4 + (30*i));
var end = start - 21.1;
dc.drawArc(handWidth/6.2, handWidth/2.47, handWidth/10.5, 1, start+90, end+90);
}
}
