[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Emacs Survey: Toolbars
From: |
Tomas Hlavaty |
Subject: |
RE: Emacs Survey: Toolbars |
Date: |
Fri, 25 Dec 2020 22:59:00 +0100 |
On Fri 25 Dec 2020 at 12:25, Drew Adams <drew.adams@oracle.com> wrote:
>> > > Do you have suggestion for automatically computing "it's not too hard"
>> > > color mapping for "inverse video" "pure" text?
>> >
>> > Convert the color's YUV and invert the Y.
>>
>> Possibly better: keep the hue and saturation and recalculate luminance
>> to preserve the relative contrast to background color.
>
> There are lots of ways to "invert" or complement a color.
>
> I just use RGB complementing - good enough for most
> purposes for Emacs foregrounds and backgrounds. Function
> `color-complement' in color.el does that. So does
> `hexrgb-complement' in hexrgb.el.
>
> Or I use `hexrgb-hue-complement',
> `hexrgb-saturation-complement', or `hexrgb-value-complement'
> If I just want to complement one of those components.
Brilliant, it's already in Emacs, thank you!
- Re: Emacs Survey: Toolbars, (continued)
- Re: Emacs Survey: Toolbars, Richard Stallman, 2020/12/24
- Re: Emacs Survey: Toolbars, Tomas Hlavaty, 2020/12/25
- Re: Emacs Survey: Toolbars, Stefan Monnier, 2020/12/25
- Re: Emacs Survey: Toolbars, Tomas Hlavaty, 2020/12/25
- Re: Emacs Survey: Toolbars, Stefan Monnier, 2020/12/25
- Re: Emacs Survey: Toolbars, Yuri Khan, 2020/12/25
- Re: Emacs Survey: Toolbars, Tomas Hlavaty, 2020/12/25
- Re: Emacs Survey: Toolbars, Yuri Khan, 2020/12/25
- Re: Emacs Survey: Toolbars, Tomas Hlavaty, 2020/12/25
- RE: Emacs Survey: Toolbars, Drew Adams, 2020/12/25
- RE: Emacs Survey: Toolbars,
Tomas Hlavaty <=
- Re: Emacs Survey: Toolbars, Tomas Hlavaty, 2020/12/25
- Re: Emacs Survey: Toolbars, Eli Zaretskii, 2020/12/22
- Re: Emacs Survey: Toolbars, Arthur Miller, 2020/12/22
- Re: Emacs Survey: Toolbars, Eli Zaretskii, 2020/12/22
- Re: Emacs Survey: Toolbars, Arthur Miller, 2020/12/22
- Re: Emacs Survey: Toolbars, Jean Louis, 2020/12/22
- Re: Emacs Survey: Toolbars, Arthur Miller, 2020/12/22
- Re: Emacs Survey: Toolbars, Richard Stallman, 2020/12/22
- Re: Emacs Survey: Toolbars, Arthur Miller, 2020/12/23
- Re: Emacs Survey: Toolbars, Christopher Dimech, 2020/12/23