Let's paint those bikesheds^Werror messages!

Random D user via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 27 11:41:00 PDT 2017


On Tuesday, 27 June 2017 at 14:32:28 UTC, Vladimir Panteleev 
wrote:
> With 2.075's release near, now would be a good time to decide 
> on a nice color palette that looks fine on most terminals. So, 
> please vote:

What ever you do, please don't use extreme high intensity colors 
like red(255,0,0), green (0,255,0) or blue (0,0,255). They'll 
burn through your eyes and look bad on either white or black.
If you replace 0s with 32 and 255s with 192 you'll get colors 
that are more easy on the eyes and will work better on both black 
and white backgrounds.

Another strategy is to use HSV.
Set saturation and value something decent like 80 and 75.
Then loop through hue with 360 / num_colors step + good offset.
Now you should get enough colors that are as far from each other 
as they can be and give good contrast.
You can quickly preview this in some photo editor, or maybe even 
faster by writing some d code :)

I guess the next level would be actual color design instead of 
nerdy math.


More information about the Digitalmars-d mailing list