code: public final int getIndexNearest(int pColor) {
          return inverseRGB[((pColor >> (3 * TRUNCBITS)) & QUANTMASK_RED) +
                  ((pColor >> (2 * TRUNCBITS)) & QUANTMASK_GREEN) +
                  ((pColor >> (/* 1 * */ TRUNCBITS)) & QUANTMASK_BLUE)] & 0xFF;
      }
docs: Gets the index of the nearest color to from the color map.
  
  @param pColor the color to get the nearest color to from color map
  color must be of format {@code 0x00RRGGBB} - standard default RGB
  @return index of color which closest matches input color by using the
  created inverse color map.