[vis] Implement and test masked palettes.