From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark Oteiza Newsgroups: gmane.emacs.devel Subject: Re: Doc string and operation of color-distance Date: Fri, 15 Sep 2017 12:32:09 -0400 Message-ID: <20170915163209.GA16148@holos.localdomain> References: <83mv5xm84m.fsf@gnu.org> <874ls5xdzz.fsf@udel.edu> <831sn8m66n.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1505493178 3918 195.159.176.226 (15 Sep 2017 16:32:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 15 Sep 2017 16:32:58 +0000 (UTC) User-Agent: Mutt/1.9.0 (2017-09-02) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 15 18:32:53 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dstXw-0000rL-UY for ged-emacs-devel@m.gmane.org; Fri, 15 Sep 2017 18:32:53 +0200 Original-Received: from localhost ([::1]:54198 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dstY4-00022w-Ey for ged-emacs-devel@m.gmane.org; Fri, 15 Sep 2017 12:33:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41947) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dstXL-00022Q-QQ for emacs-devel@gnu.org; Fri, 15 Sep 2017 12:32:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dstXI-0003Q1-JK for emacs-devel@gnu.org; Fri, 15 Sep 2017 12:32:15 -0400 Original-Received: from mail-qk0-x234.google.com ([2607:f8b0:400d:c09::234]:57255) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dstXI-0003Pk-E4 for emacs-devel@gnu.org; Fri, 15 Sep 2017 12:32:12 -0400 Original-Received: by mail-qk0-x234.google.com with SMTP id u7so2524345qku.13 for ; Fri, 15 Sep 2017 09:32:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=udel-edu.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=i9sjPGOFdK2tKYR0zFrRIOG1Ose1UckIiFPStPbgrEQ=; b=hcvMQisftAX88xLb+tYThtLt6UBEWCknM/IW9dEMy07sDGBwPAzdk1fCb1luWGYipv xabL5FaCbW6SryT+r6nk1iBwuTyAJH8nmPTtI2qwXn15Qii13Jmbeqamxlt+5hzj7VjQ uCe8Of7SAXgfrZdTVuT5gnHnXJ4QMwiprOBOwV1OgQbMDnSJ8PRX9AeO0Fm7IVNG79sb SGDzH+NQwBCwSKEqAxPCf36vOGVfaMcgoqCOuj99CqUrUPvG1kF2MzuEQ9xAHOVcf91C FpCIt2TBdNTD7mZFaMclDaJ7X6/C6sQ5Bf6DyNgImCDlaOoj+F7Q9PxYv1JgZcGKDSqu awGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=i9sjPGOFdK2tKYR0zFrRIOG1Ose1UckIiFPStPbgrEQ=; b=DivzvGSU7beQAiS2yFlgPZrmfowxwSn8Wvw71ahfmGfu8j+FD+Fn5UCAZgjxY2wmaI lY/A+PbAqP7u8ORIq3lc7FrZbWqwZgB3BwT4pm81isa3iMF/ISSolJoY/7GNz5UdyuOn +wecQgWp+nX1wfG6xWtxak3GkujBVircT6zUCJkQq79p9UkoAHbo/jwoAlbGk2fpdHT3 3rT/rDt8ghRyUQgajKZazEpYw9kLAyPCmIZ19NAeTA04u3CrqXn3YORpVlYqpv3urd85 AfobaK75R2+O6C7uf2xUVamfHOn2TaSHEIpPXTbGQ1CJHxaFhuiZ8Juk5JmGkM1zMoC3 fozg== X-Gm-Message-State: AHPjjUip/IppmfUpWETx3vtSSAWx4kf7hAscsk+lPNvYZ77PrJEU8slX gm24E9VXdBt9yURJ1z7eDQ== X-Google-Smtp-Source: AOwi7QA5nmkQfBVtexD/ECBXX90KUdj/uzrvY6ea8weAkWb5VmtRnYFm6uHEHwrbkvJr7tFnuiN3Yg== X-Received: by 10.55.40.41 with SMTP id o41mr8188612qkh.271.1505493131599; Fri, 15 Sep 2017 09:32:11 -0700 (PDT) Original-Received: from holos.localdomain (pool-173-67-36-61.bltmmd.fios.verizon.net. [173.67.36.61]) by smtp.gmail.com with ESMTPSA id z195sm783959qkz.42.2017.09.15.09.32.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Sep 2017 09:32:10 -0700 (PDT) Original-Received: by holos.localdomain (Postfix, from userid 1000) id AE61D69FB7; Fri, 15 Sep 2017 12:32:09 -0400 (EDT) Content-Disposition: inline In-Reply-To: <831sn8m66n.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:218328 Archived-At: On 15/09/17 at 04:40pm, Eli Zaretskii wrote: > > From: Mark Oteiza > > Date: Thu, 14 Sep 2017 15:43:28 -0400 > > Cc: emacs-devel@gnu.org > > > > At the very least we should feed metrics the translated RGBs. > > Yes. But it would be nicer if the lcms.c functions accepted colors in > any form supported by Emacs: a color name, a string RGB spec, or a > list of RGB values. I think. But color-distance and color-values do that already, and it's just a matter of converting 16bit RGB to another color space, and all those utilities exist already in color.el