code: public int color(Context ctx) {
          if (mColorInt == 0 && mColorRes != -1) {
              mColorInt = ContextCompat.getColor(ctx, mColorRes);
          }
          return mColorInt;
      }
docs: a small helper to get the color from the colorHolder
  
  @param ctx
  @return