# Turn gauge arc into gradient

**URL:** <https://discourse.processing.org/t/turn-gauge-arc-into-gradient/4103>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [October 3, 2018, 11:18pm UTC](https://discourse.processing.org/t/turn-gauge-arc-into-gradient/4103 "2018-10-03T23:18:47Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![tony](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/tony/32/949_2.png) [@tony](https://discourse.processing.org/u/tony)\
**Post date:** [October 4, 2018, 2:48am UTC](https://discourse.processing.org/t/turn-gauge-arc-into-gradient/4103/7 "2018-10-04T02:48:25Z")

</div>

Wow! I can’t find the thread but someone had this problem before! (I’ll edit it in once I find it). It comes down to the fact that the serial Port just skips output, randomly, for whatever reason. Our previous fix was to just test whether or not `list` actually contained a second element.

I know you’ve must have spent a lot of time on this, but I actually believe someone’s made a very polished library that does what you want and more (yay?).

> **[BillKujawa/meter](https://github.com/BillKujawa/meter)**
>
> Display values in an analog style meter. Contribute to BillKujawa/meter development by creating an account on GitHub.

But if you’re just using this as a learning exercise, we can still tackle the original problem

**EDIT:**  
Here’s the link: [[SOLVED] ArrayIndexOutOfBoundsException: 1](https://discourse.processing.org/t/solved-arrayindexoutofboundsexception-1/2288/7)

---

_[View the full topic](https://discourse.processing.org/t/turn-gauge-arc-into-gradient/4103)._
