Forum Archive

module to generate distinct colors ?.

alexsunny123

Hello,

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://topdatingwebsitesx.com/chatiw
https://topdatingwebsitesx.com/chatki
https://chatrandom.live

thanks
alexsunny

mikael

@alexsunny123, interesting. Are there any other properties to these distinct colors, like even spread or minimum distance?

fezgrshger

are there any other properties to these distinct colors,