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: Julien Danjou
Subject: bug#24273: 25.1.50; Unexpected return value from `color-name-to-rgb'
Date: Sat, 20 Aug 2016 12:06:26 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin)

On Sat, Aug 20 2016, Simen Heggestøyl wrote:

> The docstring for `color-name-to-rgb' states the following:
>
> "Normally the return value is a list of three floating-point numbers,
> (RED GREEN BLUE), each between 0.0 and 1.0 inclusive."
>
> When passing the hex value for white the return value is as expected:
>
>      (color-name-to-rgb "#ffffff")
>           ⇒ (1.0 1.0 1.0)
>
> But when passing the name of the same color, the return value becomes
> different:
>
>      (color-name-to-rgb "white")
>           ⇒ (1.00390625 1.00390625 1.00390625)

What are the return values of:
 (color-values "white")
and
 (color-values "#ffffff")
?

-- 
Julien Danjou
/* Free Software hacker
   https://julien.danjou.info */

Attachment: signature.asc
Description: PGP signature


reply via email to

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