# Outline a 2D Shape

**URL:** <https://discourse.libcinder.org/t/outline-a-2d-shape/95>\
**Category:** Using Cinder\
**Created:** [June 18, 2016, 2:22am UTC](https://discourse.libcinder.org/t/outline-a-2d-shape/95 "2016-06-18T02:22:45Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![lithium](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/lithium/32/38_2.png) [@lithium](https://discourse.libcinder.org/u/lithium)\
**Post date:** [June 24, 2016, 12:41am UTC](https://discourse.libcinder.org/t/outline-a-2d-shape/95/8 "2016-06-24T00:41:29Z")

</div>

There’s so many different ways to go about this, and this may not be the most efficient, but since your outline only needs to be black, you can just multiply all colors by the desired fill color and the black ones will stay black, and the rest will modulate with their own colors, so anything white will become 100% the active color.

In the case of your svg, after you load it into a `TriMesh` but before you create the batch, you’ll need to set all the vertices that need to change color to white (or if editing the source SVG is an option, just make them white in the original vector art)

> <https://gist.github.com/lithium-snepo/520a65f88ebec736b061f297ea14da88>

---

_[View the full topic](https://discourse.libcinder.org/t/outline-a-2d-shape/95)._
