Hi all,
I'm trying to create a watchface.
I want to create an arc for calories.
I'm unable to use drawArc.
I load layout, then in onUpdate(dc as Dc) I try to draw an arc like this:
dc.setPenWidth(10); dc.setColor(Graphics.COLOR_RED, Graphics.COLOR_BLACK); var halfHeight = dc.getHeight() / 2; var halfWidth = dc.getWidth() / 2; var radius = (halfHeight > halfWidth) ? halfWidth : halfHeight; dc.drawArc(dc.getHeight() / 2, dc.getWidth() / 2, radius, Graphics.ARC_CLOCKWISE, 0, 360);
Don't know why setPenWitdh, don't know what is second color on dc.setColor.
This was a try just for see if I was able to draw an arc.