unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Copley <rcopley@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: John Wiegley <johnw@gnu.org>, Tom Tromey <tom@tromey.com>,
	Emacs Development <emacs-devel@gnu.org>
Subject: Re: CSS contrast (#30295) (was Re: Heads-up: Emacs 26.1 RC1)
Date: Wed, 21 Mar 2018 14:24:50 +0000	[thread overview]
Message-ID: <CAPM58ojZnHAZgG3Z+dMTUfZtjbm9sH25NPrpZrynq_qu3RbAiQ@mail.gmail.com> (raw)
In-Reply-To: <83vadpk10e.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1742 bytes --]

On 21 March 2018 at 13:32, Eli Zaretskii <eliz@gnu.org> wrote:

> > From: Richard Copley <rcopley@gmail.com>
> > Date: Wed, 21 Mar 2018 13:22:37 +0000
> > Cc: John Wiegley <johnw@gnu.org>, Tom Tromey <tom@tromey.com>,
> >       Emacs Development <emacs-devel@gnu.org>
> >
> >  We do something very similar in frame-set-background-mode and in
> >  tty-color-approximate.
> >
> > I don't see it. You're talking about this?
> >
> >           ((>= (apply '+ (color-values bg-color frame))
> >                ;; Just looking at the screen, colors whose
> >                ;; values add up to .6 of the white total
> >                ;; still look dark to me.
> >                (* (apply '+ (color-values "white" frame)) .6))
>
> That's the first example, yes.
>
> > It's this particular way of using color-distance that we appear to
> > have invented.
>
> Not according to the article from which the implementation of
> color-distance was taken.


???

> If we didn't then we took it from
> > somewhere else, and someone (Tom?) should know where.
>
> The comments in the sources of color-distance tell where we took it
> from.
>

The comments, and the article, say where the colour distance formula itself
comes from.
The article doesn't support our usage of the formula at all.

It says:
>> This distance will only be used in comparisons, to verify whether one
colour, *A*, is closer to colour *B* or to colour *C*.
That's what my patch 1 does. It's nothing like what the current code does.

> I don't believe the concept of a sphere centred on black is a useful one
> in this context, or that allowing the
> > user to vary its radius makes it any better.
>
> I suggest to read the original article mentioned above.
>

I suggest you re-read it.

[-- Attachment #2: Type: text/html, Size: 3033 bytes --]

  reply	other threads:[~2018-03-21 14:24 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-20 19:02 CSS contrast (#30295) (was Re: Heads-up: Emacs 26.1 RC1) Richard Copley
2018-03-20 19:17 ` Eli Zaretskii
2018-03-20 19:56   ` Richard Copley
2018-03-21  5:52     ` Yuri Khan
2018-03-21  7:54       ` Eli Zaretskii
2018-03-21  7:38     ` Eli Zaretskii
2018-03-21  9:59       ` Richard Copley
2018-03-21 11:34         ` Richard Copley
2018-03-21 12:47           ` Eli Zaretskii
2018-03-21 13:22             ` Richard Copley
2018-03-21 13:32               ` Eli Zaretskii
2018-03-21 14:24                 ` Richard Copley [this message]
2018-03-21 15:36                   ` Eli Zaretskii
2018-03-21 19:03                     ` Richard Copley
2018-03-21 12:40         ` Eli Zaretskii

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=CAPM58ojZnHAZgG3Z+dMTUfZtjbm9sH25NPrpZrynq_qu3RbAiQ@mail.gmail.com \
    --to=rcopley@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=johnw@gnu.org \
    --cc=tom@tromey.com \
    /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).