阅读背景:

如何自动生成N个“不同”的颜色?

来源:互联网 

I wrote the two methods below to automatically select N distinct colors. It works by defining a piecewise linear function on the RGB cube. The benefit of this is you can also get a progressive scale if that's what you want, but when N gets large the colors can start to look similar. I can also imagine evenly subdividing the RGB cube into a lattice and then drawing points. Does anyone know any other methods? I'm ruling out defining a list and then just cycling through it. I should also say I don't generally care if they clash or don't look nice, they just have to be visually distinct.I wrote the two methods below to automatically




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: