/* Returns a new, random color wheel index with a minimum distance of 42 from pos.  */
static uint8_t get_random_wheel_index(uint8_t pos)
/* Returns a new, random color wheel index with a minimum distance of 42 from pos.  */
static uint8_t get_random_wheel_index(uint8_t pos)
{
  uint8_t r = 0;
  uint8_t x = 0;
  uint8_t y = 0;
  uint8_t d = 0;
  while(d < 42) {
    r = rand() % 360;
    x = abs(pos - r);
    y = 360 - x;
    d = min(x, y);
  }
  return r;
}