bug-gnu-emacs
[Top][All Lists]
Advanced

[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 <address@hidden>
> Cc: Simen Heggestøyl <address@hidden>,
>   address@hidden,  address@hidden
> Date: Sat, 20 Aug 2016 14:07:08 +0200
> 
> On Aug 20 2016, Eli Zaretskii <address@hidden> wrote:
> 
> >> Date: Sat, 20 Aug 2016 12:11:46 +0200
> >> From: Simen Heggestøyl <address@hidden>
> >> Cc: address@hidden
> >> 
> >> On Sat, Aug 20, 2016 at 12:06 PM, Julien Danjou <address@hidden> 
> >> 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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]