in reply to Re^3: Coloring IRC logs nicely
in thread Coloring IRC logs nicely
Only 2 of possible 16 colors are used.How is that a problem? There are only two people in the channel, so why whould you want to use more than two colours? People already in the channel when you start would be considered as people joining when they talk and have no colour assigned to them.
The problem is, that the contrast is not maximized. calc_color distributes all colors evenly over the whole color space. Example:
If calc_color thinks there exist only two different persons, it will produce (e.g.) the colors #000000 and #ffffff. But if we tell calc_color that there're 16 different persons, we'll get #000000 and #111111. So, the contrast is not the maximum possible contrast.
Then use 32 colours instead of 16. And if 32 people are talking at the same time, I don't think colours are going to help you much.
True, haven't thought about that. So, Jaad's and davido's solutions fulfil their purpose -- Color nicks fast. If there're more people that available colors, that's a. bad luck and b. very unlikely.
I just noticed that the case of not-using-all-available-colors is rare, too. So, it seems the pool-solutions are actually better than I first thought, thanks again Jaad and davido!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
26 difference colours...
by ikegami (Patriarch) on Aug 19, 2004 at 18:37 UTC | |
|
Re^5: Coloring IRC logs nicely
by husker (Chaplain) on Aug 19, 2004 at 20:06 UTC |