[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: list-colors-display: display all color names
From: |
Eli Zaretskii |
Subject: |
Re: list-colors-display: display all color names |
Date: |
Tue, 04 Jan 2005 23:09:47 +0200 |
> From: Juri Linkov <address@hidden>
> Date: Tue, 04 Jan 2005 11:07:55 +0200
> Cc: address@hidden
>
> It's possible to use #RRGGBB hex color specifications instead of
> color names.
Actually, where Emacs interprets such color specs, it uses
#RRRRGGGGBBBB (i.e. 16 bits per color). In other places, it doesn't
care whether you use 1, 2, 3, or 4 hex digits per principal color (it
passes the spec verbatim to X functions).
> it might be difficult for users to obtain corresponding hex values.
How about adding a function color-values-hex, which calls color-values
and then transforms the result into the hex #RGB notation? Would that
fix this problem?
> Also, users might want to find the color name corresponding to
> the known RGB value.
Is there any reasonably practical way to do that for an arbitrary RGB
triplet?
For more-or-less standard RGB values, the ones listed in
tty-colors.el, doing that is simply a matter of searching the alist
returned by tty-color-alist; if trhat is what you want, does this
justify a new feature?
> All I propose now is to add color hex values to the *Colors* buffer.
> I think that placing them at the right window edge would not be
> distracting. For example:
>
> gray grey bebebe
> light gray light grey, LightGray, LightGrey d3d3d3
First, if we do that, I'd suggest to use #BE12BE34BE56, i.e. prefix
with # and use 4 digits per color.
And second, what do you suggest to display on character terminals?
- Re: list-colors-display: display all color names, Juri Linkov, 2005/01/04
- RE: list-colors-display: display all color names, Drew Adams, 2005/01/04
- Re: list-colors-display: display all color names,
Eli Zaretskii <=
- Re: list-colors-display: display all color names, Stefan Monnier, 2005/01/04
- Re: list-colors-display: display all color names, Juri Linkov, 2005/01/05
- RE: list-colors-display: display all color names, Drew Adams, 2005/01/05
- Re: list-colors-display: display all color names, Eli Zaretskii, 2005/01/05
- Re: list-colors-display: display all color names, Edward O'Connor, 2005/01/05
- Re: list-colors-display: display all color names, Eli Zaretskii, 2005/01/05
Re: list-colors-display: display all color names, Juri Linkov, 2005/01/05
Re: list-colors-display: display all color names, Eli Zaretskii, 2005/01/05