From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: color.el Date: Sun, 20 Feb 2011 07:44:31 -0800 Message-ID: <5ED470E3D5E543439798EE16AB5F6D60@us.oracle.com> References: <87sjvjj2mz.fsf@stupidchicken.com> <8762sfv7c6.fsf@catnip.gol.com><3028FDD10C5A4C1A8BF109BAA0CA773B@us.oracle.com> <877hcvtklr.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1298216807 11663 80.91.229.12 (20 Feb 2011 15:46:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Feb 2011 15:46:47 +0000 (UTC) Cc: 'Chong Yidong' , emacs-devel@gnu.org To: "'Miles Bader'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 20 16:46:42 2011 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 1PrBUg-0003Ib-Ga for ged-emacs-devel@m.gmane.org; Sun, 20 Feb 2011 16:46:42 +0100 Original-Received: from localhost ([127.0.0.1]:34203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrBUf-0001U6-VF for ged-emacs-devel@m.gmane.org; Sun, 20 Feb 2011 10:46:41 -0500 Original-Received: from [140.186.70.92] (port=42753 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrBUV-0001Tl-5U for emacs-devel@gnu.org; Sun, 20 Feb 2011 10:46:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrBUU-0005LS-9X for emacs-devel@gnu.org; Sun, 20 Feb 2011 10:46:31 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:31428) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrBUS-0005Ka-OV; Sun, 20 Feb 2011 10:46:28 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id p1KFkOVb006357 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 20 Feb 2011 15:46:26 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id p1KFHuDt007207; Sun, 20 Feb 2011 15:46:20 GMT Original-Received: from abhmt021.oracle.com by acsmt353.oracle.com with ESMTP id 1070968471298216673; Sun, 20 Feb 2011 07:44:33 -0800 Original-Received: from dradamslap1 (/10.159.44.124) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 20 Feb 2011 07:44:32 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <877hcvtklr.fsf@catnip.gol.com> Thread-Index: AcvQs6n/9eToYX7TTyyFHo+VMNkwMwAYFPmA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-Source-IP: acsmt353.oracle.com [141.146.40.153] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090208.4D61374F.00D5:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 148.87.113.121 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:136282 Archived-At: > > IMO, the values should be of the same type (a) for all > > components (r,g,b,h,s,v), and (b) for both input and > > return values. We should not be sometimes passing in > > [0,1] for RGB and other times passing in [0,255] for RGB. > > Similarly for return values. And we should not use [0,360] > > for H but [0,1] for S and V. > > I agree. > > I'd rather not ever use 0-255 in the interface though. _If_ it's > sometimes desirable to use integers instead of floats for color > components, 0-65535 gives higher resolution, is already in use by > Emacs color functions (`color-values'), and can be efficiently (without > division) converted to 0-255 internally when that range is desirable > (for backends or whatever). I agree.