private static int blendRgb(int bg, int fg, double value) {
    return (int)Math.round(Math.sqrt(bg * bg * (1 - value) + fg * fg * value));
  }
private static int blendRgb(int bg, int fg, double value)