upwart
Mar 23, 2014 - 15:42
Here's a module to generate a specified number of distinct colors.
You can exclude certain colors, most likely black or white by gving a list of color tuples to be excluded.
So for instance:
import distinct_colors
c=distinct_colors.distinct_colors(10,[(0,0,0)])
generates ten distinct colors without using black.
https://gist.github.com/7410aaeb951dc659f8f2