From: Ian Zimmerman <itz@buug.org>
Subject: Re: Emacs-21.3 is ignoring my X-resources colors setting
Date: 11 Jul 2004 08:08:08 -0700 [thread overview]
Message-ID: <87iscueg4n.fsf@buug.org> (raw)
In-Reply-To: mailman.525.1089555395.22971.help-gnu-emacs@gnu.org
Harry> Does anyone know where there is a handy dandy reference chart
Harry> that shows equivalent meaning of color notations like these in
Harry> plain english?
Harry> nedit*statsLine.background: #e6e6e6
Harry> nedit*statsLine.foreground: #000000
Harry> nedit*text.background: #ffffff
Harry> nedit*text.cursorForeground: #000000
Harry> nedit*text.foreground: #000000
Harry> nedit*text.selectBackground: #4c59a6
Harry> nedit*text.selectForeground: #ffffff
Do you mean lookup the color name based on the RGB value?
In general this is ill-defined because there are only about 1000 colors
defined in rgb.txt but there are 256^6 possible RGB combinations, assuming
16 bit depth.
What you can do is program a best approximation in some sense, for example,
least-square approximation. The classic program for that is xcolorsel;
I have recently written a gtk 2.x act-alike called gcolorsel:
http://primate.net/~itz/gcolorsel_1.9.1.orig.tar.gz
(the .orig. is because it is part of a Debian source package, together with
the .dsc and .diff.gz files at the same location)
--
"It's not true or not." A reality show producer (real quote)
prev parent reply other threads:[~2004-07-11 15:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-08 18:44 Emacs-21.3 is ignoring my X-resources colors setting * Tong *
2004-07-09 3:36 ` Ian Zimmerman
2004-07-09 10:06 ` Kai Grossjohann
2004-07-13 7:47 ` Tim X
2004-07-13 9:57 ` Harry Putnam
2004-07-09 13:56 ` Harry Putnam
2004-07-09 22:14 ` David Steiner
2004-07-11 14:13 ` Harry Putnam
[not found] ` <mailman.525.1089555395.22971.help-gnu-emacs@gnu.org>
2004-07-11 15:08 ` Ian Zimmerman [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87iscueg4n.fsf@buug.org \
--to=itz@buug.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.