Perceptually uniform color spaces
I've grappled with this problem multiple times in data-vis programming.A related problem is, once you have a uniform color space, how do you color code a list of things such that:A) Color are maximally distinguishable from each other, i.e. maximally separated on the color wheel.B) Colors are stable as items are added and removed, to avoid confusion caused by the color for an item shifting as you update the display.The two criteria are at odds, unfortunately. The compromise I came up used PHI, since it's essentially a radial distribution problem, which PHI excels at. Something like:    (PHI * idx * 360) % 360