Outlines and strokes

Hey guys,

Looking forward to receiving my pebble watch hopefully this month! I’ve been working in the emulator to start building my watchapps and I’ve been looking to simply create a rectangle with a stroke.

According to the part 3 js sdk tutorial the proposed solution is

    // Draw border
    render.fillRectangle(white, barX, barY, barWidth, barHeight);
    render.fillRectangle(black, barX + 1, barY + 1, barWidth - 2, barHeight - 2);

So to draw a rectangle that is a few px bigger underneath with a different colour. This seems like a very ineffective method of doing this so I was wondering if there is another way - and if not, perhaps can someone forward me to the right place to contribute and maybe get this functionality added through OSS contribution.

Thanks,

C

2 Likes

It’s easy in C, so I would be surprised if it wasn’t possible in JS.

1 Like