# How to change the color output of Level tracing

**URL:** <https://discourse.slicer.org/t/how-to-change-the-color-output-of-level-tracing/7323>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [June 26, 2019, 9:48pm UTC](https://discourse.slicer.org/t/how-to-change-the-color-output-of-level-tracing/7323 "2019-06-26T21:48:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve01](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@steve01](https://discourse.slicer.org/u/steve01)\
**Post date:** [June 26, 2019, 9:48pm UTC](https://discourse.slicer.org/t/how-to-change-the-color-output-of-level-tracing/7323/1 "2019-06-26T21:48:34Z")

</div>

Operating system: Mac OS El Capitan 10.11.6  
Slicer version: 4.10.2 r28257  
expected behavior:  
Actual behavior:  
I would like to change the color output of Level tracing. I do not know how to program. Is there a way of doing this?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [June 27, 2019, 4:07am UTC](https://discourse.slicer.org/t/how-to-change-the-color-output-of-level-tracing/7323/2 "2019-06-27T04:07:59Z")

</div>

Could you please attach a screenshot and show there what color you would like to change?

---

<div class="post-metadata">

**Author:** ![steve01](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@steve01](https://discourse.slicer.org/u/steve01)\
**Post date:** [June 27, 2019, 3:25pm UTC](https://discourse.slicer.org/t/how-to-change-the-color-output-of-level-tracing/7323/3 "2019-06-27T15:25:05Z")

</div>

Hello Andras,

Please see attachment. The color is currently green. I don’t have any specific color I would like to change it to, I would just like to learn how to change it.

Thank you

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [June 27, 2019, 3:42pm UTC](https://discourse.slicer.org/t/how-to-change-the-color-output-of-level-tracing/7323/4 "2019-06-27T15:42:29Z")

</div>

I think it’s hard-coded currently. Here’s what you need to change if you want a different color:

> <https://github.com/Slicer/Slicer/blob/master/Modules/Loadable/Segmentations/EditorEffects/Python/SegmentEditorLevelTracingEffect.py#L143>

You can find this file in the installed folder: [SlicerInstallFolder]\Slicer 4.11.0-2019-MM-DD\lib\Slicer-4.11\qt-scripted-modules\SegmentEditorEffects\SegmentEditorLevelTracingEffect.py

---

<div class="post-metadata">

**Author:** ![steve01](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@steve01](https://discourse.slicer.org/u/steve01)\
**Post date:** [June 27, 2019, 4:03pm UTC](https://discourse.slicer.org/t/how-to-change-the-color-output-of-level-tracing/7323/5 "2019-06-27T16:03:50Z")

</div>

Is there a list somewhere that shows what colors correspond to the code?

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [June 27, 2019, 4:24pm UTC](https://discourse.slicer.org/t/how-to-change-the-color-output-of-level-tracing/7323/6 "2019-06-27T16:24:17Z")

</div>

You can use Google’s color picker by typing “color picker” into google search. If you set the values (multiplied by 255) in the rgb fields then you get the color. Or use any other color picker of your choice.

---

<div class="post-metadata">

**Author:** ![steve01](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@steve01](https://discourse.slicer.org/u/steve01)\
**Post date:** [June 27, 2019, 4:36pm UTC](https://discourse.slicer.org/t/how-to-change-the-color-output-of-level-tracing/7323/7 "2019-06-27T16:36:01Z")

</div>

I will look into it. Are the rgb fields the areas separated by commas?  
sorry really don’t know how to program.
