unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Miles Bader <miles@gnu.org>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Which one has the right color, Emacs or GIMP?
Date: Tue, 28 Jul 2009 11:44:19 +0900	[thread overview]
Message-ID: <87hbwxbk70.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <87fxchbmyo.fsf@catnip.gol.com>

Miles Bader writes:

 > Huh?  RGBA is just a notation for a storage format, it says nothing
 > about how the components should or should-not-be interpreted.

Of course it says something.  It says that the various components red,
green, and blue shall be used in strengths given as a fraction of
their maximum, as modified by the alpha if the display is capable.

It's possible to quibble about whether that "strength" must be linear
or merely increasing (the latter interpretation admits gamma
adjustment among others).  But to say "it says nothing" is too much of
a stretch.

I admit I've never read the X Window System Color Management System
documents closely, but I suspect there's a specification there for RGB.

I can say that one of the rationales for RGB.txt was so that color
names could be device-independent, while their RGB values might vary.
But of course that didn't work so well because RGB.txt lives where
libX11 does, not on the server, and nowadays RGB.txt may not be
consulted at all.

 > The gimp, however (and emacs) needs to worry about such things
 > regardless, since in the end it's in charge of what the user sees;
 > hopefully there's helpful meta-data which says what to do...

IMHO, Emacs should delegate this to either the display hardware and
drivers (which should provide a satsifactory default gamma
adjustment), or to another application such as the GIMP.





  reply	other threads:[~2009-07-28  2:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-27 13:38 Which one has the right color, Emacs or GIMP? Lennart Borgman
2009-07-27 14:25 ` Andreas Schwab
2009-07-27 14:32   ` Lennart Borgman
2009-07-27 23:52 ` Jason Rumney
2009-07-28  1:29   ` Stephen J. Turnbull
2009-07-28  1:44     ` Miles Bader
2009-07-28  2:44       ` Stephen J. Turnbull [this message]
2009-07-28  3:28         ` Miles Bader
2009-07-28  4:40           ` Stephen J. Turnbull
2009-07-28  6:20             ` Miles Bader

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=87hbwxbk70.fsf@uwakimon.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=emacs-devel@gnu.org \
    --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).