[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check): Convert
From: |
Lars Magne Ingebrigtsen |
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 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) |
Chong Yidong <address@hidden> 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.)
address@hidden * Lars Magne Ingebrigtsen
- Re: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check): Convert colors to hexadecimal with shr-color->hexadecimal., Glenn Morris, 2010/11/23
- Re: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check): Convert colors to hexadecimal with shr-color->hexadecimal., Chong Yidong, 2010/11/23
- Re: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check): Convert colors to hexadecimal with shr-color->hexadecimal., Julien Danjou, 2010/11/23
- Re: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check): Convert colors to hexadecimal with shr-color->hexadecimal., Chong Yidong, 2010/11/23
- Re: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check): Convert colors to hexadecimal with shr-color->hexadecimal., Lars Magne Ingebrigtsen, 2010/11/23
- Re: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check): Convert colors to hexadecimal with shr-color->hexadecimal., Chong Yidong, 2010/11/23
- Re: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check): Convert colors to hexadecimal with shr-color->hexadecimal.,
Lars Magne Ingebrigtsen <=
- RE: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert colors to hexadecimal with shr-color->hexadecimal., Drew Adams, 2010/11/23
- Re: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert colors to hexadecimal with shr-color->hexadecimal., Julien Danjou, 2010/11/24
- Re: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert colors to hexadecimal with shr-color->hexadecimal., Eli Zaretskii, 2010/11/24
- Re: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert colors to hexadecimal with shr-color->hexadecimal., Stefan Monnier, 2010/11/24
- Re: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert colors to hexadecimal with shr-color->hexadecimal., Lennart Borgman, 2010/11/24
- Re: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert colors to hexadecimal with shr-color->hexadecimal., Ted Zlatanov, 2010/11/24
- Re: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert colors to hexadecimal with shr-color->hexadecimal., Lennart Borgman, 2010/11/24
- Re: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert colors to hexadecimal with shr-color->hexadecimal., Lars Magne Ingebrigtsen, 2010/11/24
- Use color-tweaking code to improve face defaults? [was: /srv/bzr/emacs/trunk r1...], Drew Adams, 2010/11/24
- Re: /srv/bzr/emacs/trunk r102478: shr.el (shr-tag-color-check):Convert colors to hexadecimal with shr-color->hexadecimal., Stefan Monnier, 2010/11/24