Add flat_palette, but keep private for now

I think this function would benefit greatly from doing the ramp in a non-RGB
space, but that's not currently implemented.