Subject: Re: bug#4033: 23.1; list-colors-display is misleading

From: Juri Linkov <[email-masked]>
Date: Wed, 05 Aug 2009 00:35:12 +0300

> I have had at least one user state that he thought that, since the
> form shown is #RRGGBB, his colors had only that granularity.  IOW,
> even if one's system allows colors of the form #RRRRGGGGBBBB (more
> colors), the color names are translated to hex strings of the form
> #RRGGBB (fewer colors).

Could you show a formula that calculates the color granularity?

We could use it to print colors in the short format #RRGGBB
for the smaller color space and #RRRRGGGGBBBB otherwise.

-- 
Juri Linkov
http://www.jurta.org/emacs/