all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Julien Danjou <julien@danjou.info>
To: "Simen Heggestøyl" <simenheg@gmail.com>
Cc: 24273@debbugs.gnu.org
Subject: bug#24273: 25.1.50; Unexpected return value from `color-name-to-rgb'
Date: Sat, 20 Aug 2016 12:06:26 +0200	[thread overview]
Message-ID: <m0lgzrkb4t.fsf@danjou.info> (raw)
In-Reply-To: <87wpjbydp4.fsf@gmail.com> ("Simen \=\?utf-8\?Q\?Heggest\=C3\=B8yl\?\= \=\?utf-8\?Q\?\=22's\?\= message of "Sat, 20 Aug 2016 11:47:19 +0200")

[-- Attachment #1: Type: text/plain, Size: 750 bytes --]

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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]

  reply	other threads:[~2016-08-20 10:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-20  9:47 bug#24273: 25.1.50; Unexpected return value from `color-name-to-rgb' Simen Heggestøyl
2016-08-20 10:06 ` Julien Danjou [this message]
2016-08-20 10:11   ` Simen Heggestøyl
2016-08-20 11:34     ` Eli Zaretskii
2016-08-20 12:07       ` Andreas Schwab
2016-08-20 12:17         ` Eli Zaretskii
2016-08-20 12:32           ` Julien Danjou
2016-08-22  6:12             ` Simen Heggestøyl
2016-08-20 14:23           ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m0lgzrkb4t.fsf@danjou.info \
    --to=julien@danjou.info \
    --cc=24273@debbugs.gnu.org \
    --cc=simenheg@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.