# Trying to match a colour

**URL:** <https://forum.cabbageaudio.com/t/trying-to-match-a-colour/4449>\
**Category:** Cabbage Stew\
**Created:** [25 July 2024 14:12 UTC](https://forum.cabbageaudio.com/t/trying-to-match-a-colour/4449 "2024-07-25T14:12:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bryan\_T](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/bryan_t/32/5680_2.png) [@Bryan\_T](https://forum.cabbageaudio.com/u/Bryan_T)\
**Post date:** [25 July 2024 14:12 UTC](https://forum.cabbageaudio.com/t/trying-to-match-a-colour/4449/1 "2024-07-25T14:12:18Z")

</div>

I’m trying to match a colour. On my Mac the Digital Color Meter tells me it is (137, 255, 146). I then enter that in Cabbage for my Widget:

`rslider bounds(296, 162, 100, 100), channel("gain"), range(0, 1, 0, 1, .01), text("Gain"), trackerColour(137,255,146), outlineColour(0, 0, 0, 50), textColour("black")`

When I use Digital Color Meter on the Cabbage window, it tells me the colour is: (104, 232, 100).

I do not understand what is going on. Why does (137, 255, 146) become (104, 232, 100)? How can I compensate for this?

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [25 July 2024 18:01 UTC](https://forum.cabbageaudio.com/t/trying-to-match-a-colour/4449/2 "2024-07-25T18:01:03Z")

</div>

I assume this is the mouse over colour, which applies a slight alpha blend. The problem is you can’t check the regular tracker colour without hovering over the widget?

---

<div class="post-metadata">

**Author:** ![Bryan\_T](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/bryan_t/32/5680_2.png) [@Bryan\_T](https://forum.cabbageaudio.com/u/Bryan_T)\
**Post date:** [25 July 2024 18:23 UTC](https://forum.cabbageaudio.com/t/trying-to-match-a-colour/4449/3 "2024-07-25T18:23:37Z")

</div>

Oh, maybe! I hadn’t noticed that slider changing with the mouse over. Hmm.

---

<div class="post-metadata">

**Author:** ![Bryan\_T](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/bryan_t/32/5680_2.png) [@Bryan\_T](https://forum.cabbageaudio.com/u/Bryan_T)\
**Post date:** [25 July 2024 23:26 UTC](https://forum.cabbageaudio.com/t/trying-to-match-a-colour/4449/4 "2024-07-25T23:26:54Z")

</div>

I did a screenshot so that I could look at the colour without the mouseover issue. That definitely helped, though not completely. Oddly, a colour like (255,0,0) ends up more like (255,40,0). Strange, but maybe it is compensating for my display in a way that I don’t understand. I really know very little about this stuff.

---

<div class="post-metadata">

**Author:** ![rorywalsh](https://forum.cabbageaudio.com/user_avatar/forum.cabbageaudio.com/rorywalsh/32/165_2.png) [@rorywalsh](https://forum.cabbageaudio.com/u/rorywalsh)\
**Post date:** [26 July 2024 06:45 UTC](https://forum.cabbageaudio.com/t/trying-to-match-a-colour/4449/5 "2024-07-26T06:45:26Z")

</div>

I’d say this could be a result of how the painting is done. I’d need to look over the code but I do recall juce doing some funky things in its implementation of the sliders, which could have propagated its way into my classes. The colours in version 3 are more closely aligned with reality 😂
