docs: public static int getOpacityFromColor(int color) {
      int colorAlpha = color >>> 24;
      if (colorAlpha == 255) {
        return PixelFormat.OPAQUE;
      } else if (colorAlpha == 0) {
        return PixelFormat.TRANSPARENT;
      } else {
        return PixelFormat.TRANSLUCENT;
      }
    }