code: public void setPaletteRes(@ColorRes int primeId, @ColorRes int extraId) {
          this.primeColor = ContextCompat.getColor(getContext(), primeId);
          this.extraColor = ContextCompat.getColor(getContext(), extraId);
          pathPaint.setColor(primeColor);
          gradient = null;
      }
docs: Sets loader prime and extra color.
  
  @param primeId Prime color resId
  @param extraId Extra color resId