code: private int colorWithMinimumSaturation(int color, float minSaturation) {
          float[] hsv = new float[3];
          Color.colorToHSV(color, hsv);
          if (hsv[1] < minSaturation) {
              return Color.HSVToColor(new float[]{hsv[0], minSaturation, hsv[2]});
          }
  
          return color;
      }
docs: helpers