From: Lars Magne Ingebrigtsen <larsi@gnus.org>
To: emacs-devel@gnu.org
Subject: Re: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check): Convert colors to hexadecimal with shr-color->hexadecimal.
Date: Tue, 23 Nov 2010 23:34:31 +0100 [thread overview]
Message-ID: <m3mxoz7jpk.fsf@quimbies.gnus.org> (raw)
In-Reply-To: 874ob71y6v.fsf@stupidchicken.com
Chong Yidong <cyd@stupidchicken.com> writes:
> I see. Why not just use hexrgb.el (or build on it)? It's been around
> long enough that such teething problems should have been eliminated.
The purpose of color-lab is to compute readable colours.
The use case is this:
Given a constant background colour in a buffer, you then have a <p
style="color: blue"> HTML element. If you have a white background, then
that's fine. If you have a black background, the blue colour will be
unreadable. color-lab computes a "distance" between black and a blue
hue that is readable, and that blue hue is used instead. It's kinda
neat.
So it doesn't have much to do with hexrgb.el, I think. Did you read the
code?
--
(domestic pets only, the antidote for overdose, milk.)
larsi@gnus.org * Lars Magne Ingebrigtsen
next prev parent reply other threads:[~2010-11-23 22:34 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1PKgZg-0005td-8L@internal.in.savannah.gnu.org>
2010-11-23 19:50 ` /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check): Convert colors to hexadecimal with shr-color->hexadecimal Glenn Morris
2010-11-23 20:24 ` Chong Yidong
2010-11-23 21:14 ` Julien Danjou
2010-11-23 21:31 ` Chong Yidong
2010-11-23 21:38 ` Lars Magne Ingebrigtsen
2010-11-23 22:18 ` Chong Yidong
2010-11-23 22:34 ` Lars Magne Ingebrigtsen [this message]
2010-11-24 0:12 ` /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert " Drew Adams
2010-11-24 9:08 ` Julien Danjou
2010-11-24 11:35 ` Eli Zaretskii
2010-11-24 14:46 ` Stefan Monnier
2010-11-24 15:30 ` Lennart Borgman
2010-11-24 18:15 ` Ted Zlatanov
2010-11-24 21:37 ` Lennart Borgman
2010-11-24 22:19 ` Lars Magne Ingebrigtsen
2010-11-24 22:41 ` Use color-tweaking code to improve face defaults? [was: /srv/bzr/emacs/trunk r1...] Drew Adams
2010-11-25 4:53 ` /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert colors to hexadecimal with shr-color->hexadecimal Stefan Monnier
2010-12-10 19:19 ` Ted Zlatanov
2010-11-24 16:15 ` Drew Adams
2010-11-24 18:11 ` Ted Zlatanov
2010-11-24 21:00 ` /srv/bzr/emacs/trunk r102478: shr.el(shr-tag-color-check):Convert colors to hexadecimal withshr-color->hexadecimal Drew Adams
2010-11-24 21:33 ` Julien Danjou
2010-11-24 21:51 ` Drew Adams
2010-11-24 16:29 ` /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert colors to hexadecimal with shr-color->hexadecimal Chong Yidong
2010-11-24 0:05 ` Drew Adams
2010-11-24 8:36 ` /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check): Convert " Richard Stallman
2010-11-24 14:42 ` Stefan Monnier
2010-11-23 21:16 ` Lars Magne Ingebrigtsen
2010-11-23 22:19 ` Ted Zlatanov
2010-11-23 21:14 ` Julien Danjou
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3mxoz7jpk.fsf@quimbies.gnus.org \
--to=larsi@gnus.org \
--cc=emacs-devel@gnu.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).