* cieluv <-> rgb conversion
@ 2009-07-31 22:20 Lennart Borgman
2009-07-31 22:45 ` Drew Adams
0 siblings, 1 reply; 4+ messages in thread
From: Lennart Borgman @ 2009-07-31 22:20 UTC (permalink / raw)
To: emacs help
Anyone have algorithms in elisp for color conversions cieluv <-> rgb?
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: cieluv <-> rgb conversion
2009-07-31 22:20 cieluv <-> rgb conversion Lennart Borgman
@ 2009-07-31 22:45 ` Drew Adams
2009-07-31 22:48 ` Lennart Borgman
0 siblings, 1 reply; 4+ messages in thread
From: Drew Adams @ 2009-07-31 22:45 UTC (permalink / raw)
To: 'Lennart Borgman', 'emacs help'
> Anyone have algorithms in elisp for color conversions cieluv <-> rgb?
Dunno. But HSV is perhaps close enough? If so:
http://www.emacswiki.org/cgi-bin/wiki/hexrgb.el
Even if not, you can probably adapt the code there by adapting the HSV <-> RGB
conversion algorithms.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: cieluv <-> rgb conversion
2009-07-31 22:45 ` Drew Adams
@ 2009-07-31 22:48 ` Lennart Borgman
2009-07-31 23:07 ` Drew Adams
0 siblings, 1 reply; 4+ messages in thread
From: Lennart Borgman @ 2009-07-31 22:48 UTC (permalink / raw)
To: Drew Adams; +Cc: emacs help
On Sat, Aug 1, 2009 at 12:45 AM, Drew Adams<drew.adams@oracle.com> wrote:
>> Anyone have algorithms in elisp for color conversions cieluv <-> rgb?
>
> Dunno. But HSV is perhaps close enough? If so:
> http://www.emacswiki.org/cgi-bin/wiki/hexrgb.el
>
> Even if not, you can probably adapt the code there by adapting the HSV <-> RGB
> conversion algorithms.
Thanks, but I am looking for a color representation where you could
easily measure the color difference as we see them as humans. CIE Luv
is one such that seems good.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: cieluv <-> rgb conversion
2009-07-31 22:48 ` Lennart Borgman
@ 2009-07-31 23:07 ` Drew Adams
0 siblings, 0 replies; 4+ messages in thread
From: Drew Adams @ 2009-07-31 23:07 UTC (permalink / raw)
To: 'Lennart Borgman'; +Cc: 'emacs help'
> >> Anyone have algorithms in elisp for color conversions
> >> cieluv <-> rgb?
> >
> > Dunno. But HSV is perhaps close enough? If so:
> > http://www.emacswiki.org/cgi-bin/wiki/hexrgb.el
> >
> > Even if not, you can probably adapt the code there by
> > adapting the HSV <-> RGB conversion algorithms.
>
> Thanks, but I am looking for a color representation where you could
> easily measure the color difference as we see them as humans. CIE Luv
> is one such that seems good.
1. I didn't suggest using a different color representation from CIE Luv (but see
#2).
What I tried to suggest was to find a CIE Luv <-> RGB conversion algorithm on
the Web, and then adapt the code in hexrgb.el to use that algorithm. I'm
guessing that any such algorithm wouldn't be too different from HSV <-> RGB. And
hexrgb.el handles the rest, beyond the basic conversion.
2. Are you sure CIE Luv is well suited to use with a CRT or LCD screen? Human
color perception is one thing; what screens emit is another thing.
Anyway, I'm no expert on this. Good luck.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-07-31 23:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-31 22:20 cieluv <-> rgb conversion Lennart Borgman
2009-07-31 22:45 ` Drew Adams
2009-07-31 22:48 ` Lennart Borgman
2009-07-31 23:07 ` Drew Adams
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.