From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: cieluv <-> rgb conversion Date: Sat, 1 Aug 2009 00:48:39 +0200 Message-ID: References: <87746D765FEB4107A5A37140C29370D1@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1249080559 18053 80.91.229.12 (31 Jul 2009 22:49:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jul 2009 22:49:19 +0000 (UTC) Cc: emacs help To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 01 00:49:12 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MX0uU-0005QQ-0X for geh-help-gnu-emacs@m.gmane.org; Sat, 01 Aug 2009 00:49:10 +0200 Original-Received: from localhost ([127.0.0.1]:34463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MX0uT-0001Nj-A0 for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Jul 2009 18:49:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MX0u6-0001Jk-3Y for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 18:48:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MX0u1-0001Ad-D4 for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 18:48:45 -0400 Original-Received: from [199.232.76.173] (port=34178 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MX0u1-0001AW-9f for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 18:48:41 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.245]:1457) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MX0u0-0005JT-VL for help-gnu-emacs@gnu.org; Fri, 31 Jul 2009 18:48:41 -0400 Original-Received: by an-out-0708.google.com with SMTP id b6so2003533ana.21 for ; Fri, 31 Jul 2009 15:48:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=aGVwDoyvUHjhpd5p+nq/wQsgGP4AGIEiHOTxAu5NuwI=; b=VTdXOuBrlAqWrurHWyBn+PPyE+2jE5bYj6n2vnPJvEQWzVD20wHw+Rllb3Ohm5vq3R yjAJQIT8IO/+qztAvHMQ8Vz1Bt0ithR2FKSjP4/T1HqtDwcfuQNtN5dqwVftc8/gJmML euSql9zC2tPNoAWGUBTe+LGNhIr6qmlO/t3Ug= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=K2NqD5y7p/UAZCHJG7D0pLL5oskMOIo/R37Btfym4NLGwEbKZEBQsT3XJ//JpIaTCG kimi6zRP0SVB9HexNjLGCJB/I1JzlzPyzE9sV1v6z7C5XLi170mOk30cDf1zo5i6Iivg 7vbXkbkwJxO9Sw582MkkXlJfPZm86ciM82WRk= Original-Received: by 10.100.138.7 with SMTP id l7mr4138801and.141.1249080519267; Fri, 31 Jul 2009 15:48:39 -0700 (PDT) In-Reply-To: <87746D765FEB4107A5A37140C29370D1@us.oracle.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66595 Archived-At: On Sat, Aug 1, 2009 at 12:45 AM, Drew Adams wrote: >> Anyone have algorithms in elisp for color conversions cieluv <-> rgb? > > Dunno. But HSV is perhaps close enough? If so: > http://www.emacswiki.org/cgi-bin/wiki/hexrgb.el > > Even if not, you can probably adapt the code there by adapting the HSV <-> RGB > conversion algorithms. Thanks, but I am looking for a color representation where you could easily measure the color difference as we see them as humans. CIE Luv is one such that seems good.