if (MI_NPIXELS(mi) > 2)
XSetForeground(display, gc, MI_PIXEL(mi, halfrandom(MI_NPIXELS(mi))));
else if (halfrandom(2))
XSetForeground(display, gc, MI_WIN_WHITE_PIXEL(mi));
else
XSetForeground(display, gc, MI_WIN_BLACK_PIXEL(mi));
if (MI_NPIXELS(mi) > 2)
XSetForeground(display, gc, MI_PIXEL(mi, halfrandom(MI_NPIXELS(mi))));
else if (halfrandom(2))
XSetForeground(display, gc, MI_WIN_WHITE_PIXEL(mi));
else
XSetForeground(display, gc, MI_WIN_BLACK_PIXEL(mi));