From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: "RGB" in color.el Date: Fri, 26 Nov 2010 13:15:58 +0900 Message-ID: Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1290745524 3434 80.91.229.12 (26 Nov 2010 04:25:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 26 Nov 2010 04:25:24 +0000 (UTC) Cc: emacs-devel@gnu.org To: Julien Danjou Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 26 05:25:20 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PLps6-0000Jj-0P for ged-emacs-devel@m.gmane.org; Fri, 26 Nov 2010 05:25:20 +0100 Original-Received: from localhost ([127.0.0.1]:37038 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLps5-0003ei-9n for ged-emacs-devel@m.gmane.org; Thu, 25 Nov 2010 23:25:17 -0500 Original-Received: from [140.186.70.92] (port=48923 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PLpkq-0002e3-W5 for emacs-devel@gnu.org; Thu, 25 Nov 2010 23:18:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PLpjM-0003jD-CU for emacs-devel@gnu.org; Thu, 25 Nov 2010 23:17:44 -0500 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.206]:42591) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PLpjL-0003iY-Qt; Thu, 25 Nov 2010 23:16:16 -0500 Original-Received: from mailgate3.nec.co.jp ([10.7.69.197]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id oAQ4G0sD008020; Fri, 26 Nov 2010 13:16:00 +0900 (JST) Original-Received: (from root@localhost) by mailgate3.nec.co.jp (8.11.7/3.7W-MAILGATE-NEC) id oAQ4Fxl08823; Fri, 26 Nov 2010 13:15:59 +0900 (JST) Original-Received: from relay21.aps.necel.com ([10.29.19.50]) by vgate01.nec.co.jp (8.14.4/8.14.4) with ESMTP id oAQ4DH9q017295; Fri, 26 Nov 2010 13:15:59 +0900 (JST) Original-Received: from relay31.aps.necel.com ([10.29.19.20] [10.29.19.20]) by relay21.aps.necel.com with ESMTP; Fri, 26 Nov 2010 13:15:59 +0900 Original-Received: from dhlpc061 ([10.114.98.109] [10.114.98.109]) by relay31.aps.necel.com with ESMTP; Fri, 26 Nov 2010 13:15:59 +0900 Original-Received: by dhlpc061 (Postfix, from userid 31295) id AB0A552E21E; Fri, 26 Nov 2010 13:15:58 +0900 (JST) System-Type: x86_64-unknown-linux-gnu Blat: Foop Original-Lines: 22 X-detected-operating-system: by eggs.gnu.org: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:133146 Archived-At: 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.