code: public void setPalette(@ColorInt int primeColor, @ColorInt int extraColor) {
          this.primeColor = primeColor;
          this.extraColor = extraColor == 0 ? primeColor : extraColor;
          pathPaint.setColor(primeColor);
          gradient = null;
      }
docs: Sets loader prime and extra color.
  
  @param primeColor Prime color value
  @param extraColor Extra color value