[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25890: 26.0.50; `color-values` gives wrong value
From: |
Eli Zaretskii |
Subject: |
bug#25890: 26.0.50; `color-values` gives wrong value |
Date: |
Mon, 27 Feb 2017 17:51:00 +0200 |
> From: Rasmus <rasmus@gmx.us>
> Date: Mon, 27 Feb 2017 15:05:46 +0100
>
> I try to get the color value of my background, "light yellow", with
> color.el. However, `color-values` from faces.el returns the wrong value.
>
> (color-values "#ffffff") => (65280 65280 65280) ; The max values.
Are you sure? What does the below produce?
(color-values "#fffffffff")
> (color-values "#ffffe0") => (65280 65280 57344) ; Light yellow hex.
> (color-values "light yellow") => (65535 65535 57568) ; The potential bug.
On my system, I get these results:
(color-values "#ffffff") => (65535 65535 65535)
(color-values "#ffffe0") => (65535 65535 57568)
(color-values "light yellow") => (65535 65535 57568)
> That is the color value of "light yellow" exceeds the maximum value as
> defined by the color values of white (cf. `color-rgb-to-hex'). This means
> that the color.el functions won't work.
I think this means your color resolution is greater than 24 bits. Or
maybe I don't understand how the above affects your code.
- bug#25890: 26.0.50; `color-values` gives wrong value, Rasmus, 2017/02/27
- bug#25890: 26.0.50; `color-values` gives wrong value,
Eli Zaretskii <=
- bug#25890: `color-values` gives wrong value, Rasmus, 2017/02/27
- bug#25890: 26.0.50; `color-values` gives wrong value, Michael Heerdegen, 2017/02/27
- bug#25890: `color-values` gives wrong value, Rasmus, 2017/02/28
- bug#25890: `color-values` gives wrong value, Eli Zaretskii, 2017/02/28
- bug#25890: `color-values` gives wrong value, Michael Heerdegen, 2017/02/28
- bug#25890: `color-values` gives wrong value, Drew Adams, 2017/02/28
- bug#25890: `color-values` gives wrong value, Eli Zaretskii, 2017/02/28