use a color.Palette for 8-bit colors