Drawing Polygons in ConnectIQ SDK

Drawing Polygons in ConnectIQ SDK

It’s a little tricky, hopefully this helps.

Explanation

Pentagon

Square

function onUpdate(dc as Dc) as Void {
    var polyRegion = [
        [40, 40],
        [100, 40],
        [40, 100],
        [100, 100]
    ];

    dc.fillPolygon(polyRegion);
}