[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: |
Andreas Schwab |
Subject: |
bug#24273: 25.1.50; Unexpected return value from `color-name-to-rgb' |
Date: |
Sat, 20 Aug 2016 14:07:08 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) |
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.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."