There is an issue where arcs are rendered incorrectly when using a radius of 256 or greater. There is no mention in the documentation of a maximum supported radius value. This is easily reproduced in the simulator and on physical devices using SDK 3.1.6 and earlier.
The following is an example which should produce 4 similar concentric arcs, but the two larger ones have gaps in them as shown in the screenshot:
function onUpdate(dc) {
dc.setColor(Graphics.COLOR_BLACK, Graphics.COLOR_TRANSPARENT);
dc.setPenWidth(10);
dc.drawArc(350, 200, 220, Graphics.ARC_CLOCKWISE, 190, 150); // Renders fine (radius < 256)
dc.drawArc(350, 200, 250, Graphics.ARC_CLOCKWISE, 190, 150); // Renders fine (radius < 256)
dc.drawArc(350, 200, 280, Graphics.ARC_CLOCKWISE, 190, 150); // Incorrect display (radius >= 256)
dc.drawArc(350, 200, 310, Graphics.ARC_CLOCKWISE, 190, 150); // Incorrect display (radius >= 256)
}

-
Former Member
over 5 years ago
-
Cancel
-
Up
0
Down
-
-
More
-
Cancel
Comment-
Former Member
over 5 years ago
-
Cancel
-
Up
0
Down
-
-
More
-
Cancel
Children