# Outlines and strokes

**URL:** <https://forum.repebble.com/t/outlines-and-strokes/458>\
**Category:** Watchapp/Face Developers Corner\
**Created:** [April 4, 2026, 11:52am UTC](https://forum.repebble.com/t/outlines-and-strokes/458 "2026-04-04T11:52:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tinoot](https://yyz1.discourse-cdn.com/flex033/user_avatar/forum.repebble.com/tinoot/32/336_2.png) [@tinoot](https://forum.repebble.com/u/tinoot)\
**Post date:** [April 4, 2026, 11:52am UTC](https://forum.repebble.com/t/outlines-and-strokes/458/1 "2026-04-04T11:52:17Z")

</div>

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](https://developer.repebble.com/tutorials/alloy-watchface-tutorial/part3/) the proposed solution is

```javascript
    // 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

---

<div class="post-metadata">

**Author:** ![dasdom](https://avatars.discourse-cdn.com/v4/letter/d/919ad9/32.png) [@dasdom](https://forum.repebble.com/u/dasdom)\
**Post date:** [April 6, 2026, 11:39am UTC](https://forum.repebble.com/t/outlines-and-strokes/458/2 "2026-04-06T11:39:50Z")

</div>

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