unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
To: emacs-devel@gnu.org
Subject: Re: "RGB" in color.el
Date: Tue, 30 Nov 2010 14:42:15 +0900	[thread overview]
Message-ID: <buotyizxt8o.fsf@dhlpc061.dev.necel.com> (raw)
In-Reply-To: <sa3d3psl51q.fsf@cigue.easter-eggs.fr> (Julien Danjou's message of "Fri, 26 Nov 2010 12:04:17 +0100")

Julien Danjou <julien@danjou.info> writes:
>> 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...?
>
> It seems it's not sRGB, but just RGB with no color space.

Then maybe we should just declare that what emacs uses internally "is"
sRGB?

I don't think the code would need to change, just a note in
comments/docs would do it.

If we want to do useful things with color, it would really help to
assign some more meaning to the quantities being manipulated.

It won't change what's displayed of course, and what's displayed on
systems that don't use sRGB will still be "wrong," but it at least gives
a more precise point[*] at which to address such issues, and a clue how
to do it...

[*] In the window-system interface

Thanks,

-Miles

-- 
  Dinanzi a me non fuor cose create
se non etterne, e io etterno duro.
Lasciate ogne speranza, voi ch'intrate.



  reply	other threads:[~2010-11-30  5:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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=buotyizxt8o.fsf@dhlpc061.dev.necel.com \
    --to=miles@gnu.org \
    --cc=emacs-devel@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).