emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 3d highlights on dark colors


From: Gerd Moellmann
Subject: Re: 3d highlights on dark colors
Date: Mon, 13 Nov 2000 15:49:38 +0100 (CET)
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.90

Miles Bader <address@hidden> writes:

> Gerd Moellmann <address@hidden> writes:
> > > [I've tried a lot of different tweaks to get emacs to generate
> > > good-looking highlights for all colors, and the code I sent is by far
> > > the best I've been able to come up with.]
> > 
> > I believe you.
> > 
> > If we really want to address this complicated matter, I'd propose we
> > try to make use of available knowledge about color perception.
> 
> Sure.
>
> BUT:  Can I check in my change?  It does a pretty decent job, and exists now.
> The existing code without it does a sucky job.
> 
> If doing this stuff correctly is complicated, then I it could be a while
> before it actually gets done, and I really don't want emacs to be
> released with the current bad behavior.  If doing things correctly turns
> out to not be hard, then no prob, my ad-hoc code just gets replaced quickly.
> 
> If you like, I'll remove the user-visible parameters so there are no
> compatibility concerns (the default settings work quite well for every
> color I've tried, on at least two monitors with perceptibly different
> color response).

If you remove the Lisp variables, I don't object.

I think it would also be a good idea to change the computation of the
color's brightness from `max (R, G, B)' to `(2R + 3G + B) / 6' which
is close enough to the `Y' I mentioned, in integer arithmentic.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]