Sujet : Re: good way to choose 15 colors? Or 20, more? (adjacent colors should look different)
De : nospam (at) *nospam* dfs.com (DFS)
Groupes : comp.lang.pythonDate : 02. Jul 2024, 19:27:21
Autres entêtes
Message-ID : <66843879$0$980$882e4bbb@reader.netnews.com>
References : 1
User-Agent : Betterbird (Windows)
On 7/2/2024 10:49 AM, HenHanna wrote:
black= (0,0,0)
white= (255,255, 255)
blue= (0, 0, 128)
pink= (245, 182, 193)
green= (0, 128, 0)
gray= (105,105, 105)
red= (128, 0,0)
yellow= (255, 255,0)
cyan= (0, 255, 255)
magenta= (255,0, 255)
purple= ( 160, 32, 240) ------------------ that's 11 colors
What's a good way to choose 15 colors? Or 20 colors? Or more?
1) choose from lists of predefined colors
https://www.rapidtables.com/web/color/RGB_Color.htmlhttps://www.w3schools.com/html/html_colors_rgb.asphttps://excelatfinance.com/xlf/media/xlf-colindx2ws.png2) predefine and name your own colors manually, then pick the colors at random from a list
3) generate random r,g,b values between 0 and 255, and name the resultant colors.
4) generate r,g,b values in ranges known to produce greens, reds, blues, oranges, yellows, etc. You could name them consecutively: green1, green2, green3...
> (adjacent colors should look different)
What are 'adjacent colors'?