From: Miles Bader <miles.bader.fz@renesas.com>
To: Julien Danjou <julien@danjou.info>
Cc: emacs-devel@gnu.org
Subject: "RGB" in color.el
Date: Fri, 26 Nov 2010 13:15:58 +0900 [thread overview]
Message-ID: <buoipzk2001.fsf@dhlpc061.dev.necel.com> (raw)
I think the comments in color.el should be a bit more specific about the
term "RGB", since that's ambiguous (e.g., in `color-xyz->rgb', the
comment just says "Converts CIE X Y Z colors to RGB.").
From the code it's pretty clear that what's really meant is "sRGB" so
maybe that term could just be substituted.
[I dunno if it's worth adding something like "(gamma corrected)" as well
-- I guess sRGB without generally refers to the gamma-corrected form,
but it can be very useful to programmers to know whether a quantity has
a certain gamma-correction incorporated, so maybe it's worth stating
explicitly...]
Incidentally, that brings to mind the question: are color numbers in
Emacs generally taken to refer to sRGB? Is there any mechanism in X to
know...?
-Miles
--
Happiness, n. An agreeable sensation arising from contemplating the misery of
another.
next reply other threads:[~2010-11-26 4:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-26 4:15 Miles Bader [this message]
2010-11-26 11:04 ` "RGB" in color.el Julien Danjou
2010-11-30 5:42 ` Miles Bader
2010-12-01 11:13 ` Julien Danjou
2010-12-01 13:13 ` Miles Bader
2010-12-02 15:01 ` Detlev Zundel
2010-12-02 16:27 ` Julien Danjou
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=buoipzk2001.fsf@dhlpc061.dev.necel.com \
--to=miles.bader.fz@renesas.com \
--cc=emacs-devel@gnu.org \
--cc=julien@danjou.info \
--cc=miles@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).