Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
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:
import distinct_colors
c=distinct_colors.distinct_colors(10,[(0,0,0)])
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.