Here is a bit of sample code that draws a circle around the entire screen with a pen width of 20.
using Toybox.Graphics as Gfx;
using Toybox.Lang as Lang;
using Toybox.WatchUi as Ui;
class Test extends Ui.View
{
var radius;
function initialize() {
}
function onUpdate(dc) {
dc.setColor(Gfx.COLOR_BLACK, Gfx.COLOR_BLACK);
dc.clear();
var dx = dc.getWidth() / 2;
var dy = dc.getHeight() / 2;
radius = dx;
if (dy < radius) {
radius = dy;
}
dc.setColor(Gfx.COLOR_RED, Gfx.COLOR_RED);
dc.setPenWidth(20);
dc.drawCircle(dx, dy, radius - 22);
}
}
The following shows what I get when I use the above code.