all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Mark Oteiza <mvoteiza@udel.edu>
Cc: emacs-devel@gnu.org
Subject: Re: Doc string and operation of color-distance
Date: Fri, 15 Sep 2017 16:41:13 +0300	[thread overview]
Message-ID: <83zi9wkrk6.fsf@gnu.org> (raw)
In-Reply-To: <20170914202312.GA1870@holos.localdomain> (message from Mark Oteiza on Thu, 14 Sep 2017 16:23:12 -0400)

> Date: Thu, 14 Sep 2017 16:23:12 -0400
> From: Mark Oteiza <mvoteiza@udel.edu>
> Cc: emacs-devel@gnu.org
> 
> On 14/09/17 at 03:43pm, Mark Oteiza wrote:
> > +      Lisp_Object rgb1 = list3 (make_number (&cdef1.red),
> > +                                make_number (&cdef1.green),
> > +                                make_number (&cdef1.blue)); 
> > +      Lisp_Object rgb2 = list3 (make_number (&cdef2.red),
> > +                                make_number (&cdef2.green),
> > +                                make_number (&cdef2.blue)); 
> 
> I guess these need RGB values to be shifted?

Why?  color_distance only shifts them because it wants to work on
8-bit color components, but you want 16-bit components, AFAIU.



  reply	other threads:[~2017-09-15 13:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-14 18:45 Doc string and operation of color-distance Eli Zaretskii
2017-09-14 19:12 ` Mark Oteiza
2017-09-15 13:30   ` Eli Zaretskii
2017-09-15 16:45     ` Mark Oteiza
2017-09-15 17:24       ` Eli Zaretskii
2017-09-14 19:43 ` Mark Oteiza
2017-09-14 20:23   ` Mark Oteiza
2017-09-15 13:41     ` Eli Zaretskii [this message]
2017-09-15 13:40   ` Eli Zaretskii
2017-09-15 15:15     ` Mark Oteiza
2017-09-15 16:32     ` Mark Oteiza
2017-09-15 17:26       ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83zi9wkrk6.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=mvoteiza@udel.edu \
    /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 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.