colorPerPal is not set before we set the palette