module to generate distinct colors
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:
generates ten distinct colors without using black.
what's the utility? in scene scripts?
You can use the colors in a scene or canvas script (the main functions shows an example with canvas).
I personnaly developed it to be used in a game (with scene) where I needed a number of colors to be easily distinguized.
Great work :-)
Here is an update, with improved quality an stability.