spark/common/src/main/java/org/apache/sedona/viz/extension/coloringRule/PiecewiseFunction.java [34:66]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public Integer EncodeToRGB(Double normalizedCount, GlobalParameter globalParameter) {
    int alpha = 150;
    Color[] colors =
        new Color[] {
          new Color(0, 255, 0, alpha),
          new Color(85, 255, 0, alpha),
          new Color(170, 255, 0, alpha),
          new Color(255, 255, 0, alpha),
          new Color(255, 255, 0, alpha),
          new Color(255, 170, 0, alpha),
          new Color(255, 85, 0, alpha),
          new Color(255, 0, 0, alpha)
        };
    if (normalizedCount == 0) {
      return new Color(255, 255, 255, 0).getRGB();
    } else if (normalizedCount < 5) {
      return colors[0].getRGB();
    } else if (normalizedCount < 15) {
      return colors[1].getRGB();
    } else if (normalizedCount < 25) {
      return colors[2].getRGB();
    } else if (normalizedCount < 35) {
      return colors[3].getRGB();
    } else if (normalizedCount < 45) {
      return colors[4].getRGB();
    } else if (normalizedCount < 60) {
      return colors[5].getRGB();
    } else if (normalizedCount < 80) {
      return colors[6].getRGB();
    } else {
      return colors[7].getRGB();
    }
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



spark/common/src/main/java/org/apache/sedona/viz/extension/coloringRule/GenericColoringRule.java [24:56]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  public static Integer EncodeToRGB(Double normalizedCount) {
    int alpha = 150;
    Color[] colors =
        new Color[] {
          new Color(0, 255, 0, alpha),
          new Color(85, 255, 0, alpha),
          new Color(170, 255, 0, alpha),
          new Color(255, 255, 0, alpha),
          new Color(255, 255, 0, alpha),
          new Color(255, 170, 0, alpha),
          new Color(255, 85, 0, alpha),
          new Color(255, 0, 0, alpha)
        };
    if (normalizedCount == 0) {
      return new Color(255, 255, 255, 0).getRGB();
    } else if (normalizedCount < 5) {
      return colors[0].getRGB();
    } else if (normalizedCount < 15) {
      return colors[1].getRGB();
    } else if (normalizedCount < 25) {
      return colors[2].getRGB();
    } else if (normalizedCount < 35) {
      return colors[3].getRGB();
    } else if (normalizedCount < 45) {
      return colors[4].getRGB();
    } else if (normalizedCount < 60) {
      return colors[5].getRGB();
    } else if (normalizedCount < 80) {
      return colors[6].getRGB();
    } else {
      return colors[7].getRGB();
    }
  }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



