unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* "RGB" in color.el
@ 2010-11-26  4:15 Miles Bader
  2010-11-26 11:04 ` Julien Danjou
  0 siblings, 1 reply; 7+ messages in thread
From: Miles Bader @ 2010-11-26  4:15 UTC (permalink / raw)
  To: Julien Danjou; +Cc: emacs-devel

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.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-12-02 16:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-26  4:15 "RGB" in color.el Miles Bader
2010-11-26 11:04 ` 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

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).