int ProcessColor(int value) { value &= 15; if (ditherBlend) return BlendColorIndex(value, value); return value; }