Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #196356

Re: good way to choose 15 colors? Or 20, more? (adjacent colors should look different)

Date 2024-07-02 13:27 -0400
Subject Re: good way to choose 15 colors? Or 20, more? (adjacent colors should look different)
Newsgroups comp.lang.python
References <v6142n$1m6mo$1@dont-email.me>
From DFS <nospam@dfs.com>
Message-ID <66843879$0$980$882e4bbb@reader.netnews.com> (permalink)

Show all headers | View raw


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.html
https://www.w3schools.com/html/html_colors_rgb.asp
https://excelatfinance.com/xlf/media/xlf-colindx2ws.png

2) 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'?

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

good way to choose 15 colors? Or 20, more? (adjacent colors should look different) HenHanna <HenHanna@devnull.tb> - 2024-07-02 07:49 -0700
  Re: good way to choose 15 colors? Or 20, more? (adjacent colors should look different) DFS <nospam@dfs.com> - 2024-07-02 13:27 -0400
    Re: good way to choose 15 colors? Or 20, more? (adjacent colors should look different) HenHanna <HenHanna@devnull.tb> - 2024-07-02 12:49 -0700
  Re: good way to choose ... (adjacent colors should look different) (Posting On Python-List Prohibited) Lawrence D'Oliveiro <ldo@nz.invalid> - 2024-07-02 21:41 +0000
    Re: good way to choose ... (adjacent colors should look different) (Posting On Python-List Prohibited) HenHanna <HenHanna@devnull.tb> - 2024-07-02 20:12 -0700

csiph-web