InPalette
if (InPalette(n)) {
if (initialize_pair && InPalette(f) && InPalette(b)) {
if ((initialize_pair != NULL) && InPalette(f) && InPalette(b)) {