[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24273: 25.1.50; Unexpected return value from `color-name-to-rgb'
From: |
Eli Zaretskii |
Subject: |
bug#24273: 25.1.50; Unexpected return value from `color-name-to-rgb' |
Date: |
Sat, 20 Aug 2016 15:17:52 +0300 |
> From: Andreas Schwab <schwab@linux-m68k.org>
> Cc: Simen Heggestøyl <simenheg@gmail.com>,
> julien@danjou.info, 24273@debbugs.gnu.org
> Date: Sat, 20 Aug 2016 14:07:08 +0200
>
> On Aug 20 2016, Eli Zaretskii <eliz@gnu.org> wrote:
>
> >> Date: Sat, 20 Aug 2016 12:11:46 +0200
> >> From: Simen Heggestøyl <simenheg@gmail.com>
> >> Cc: 24273@debbugs.gnu.org
> >>
> >> On Sat, Aug 20, 2016 at 12:06 PM, Julien Danjou <julien@danjou.info>
> >> wrote:
> >> > What are the return values of:
> >> > (color-values "white")
> >> > and
> >> > (color-values "#ffffff")
> >> > ?
> >>
> >> (color-values "white")
> >> ⇒ (65535 65535 65535)
> >>
> >> (color-values "#ffffff")
> >> ⇒ (65280 65280 65280)
> >
> > Which means "white" and "#ffffff" are not the same color.
>
> Actually they are, because #ffffff and #ffffffffffff are the same color
> on a display with 8 bits per color.
I don't think I follow you. What does 8 bits per color have to do
with this, and how do you know the OP has 8 bits per color on his
display?
FWIW, on my display, I get (65535 65535 65535) for both expressions.