From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: unfrostedpoptart Newsgroups: gmane.emacs.help Subject: function to get inverse color name? Date: Wed, 23 Apr 2014 20:03:04 -0700 (PDT) Message-ID: <2c7e7b5b-73ec-45ae-9bf5-b638aad861ff@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1398308725 27628 80.91.229.3 (24 Apr 2014 03:05:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Apr 2014 03:05:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 24 05:05:18 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wd9yP-00085Z-P0 for geh-help-gnu-emacs@m.gmane.org; Thu, 24 Apr 2014 05:05:17 +0200 Original-Received: from localhost ([::1]:35658 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wd9yP-0001kI-9k for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Apr 2014 23:05:17 -0400 X-Received: by 10.43.117.71 with SMTP id fl7mr24461000icc.24.1398308585069; Wed, 23 Apr 2014 20:03:05 -0700 (PDT) X-Received: by 10.182.119.129 with SMTP id ku1mr471937obb.2.1398308584908; Wed, 23 Apr 2014 20:03:04 -0700 (PDT) Original-Path: usenet.stanford.edu!c1no2899123igq.0!news-out.google.com!gi6ni613igc.0!nntp.google.com!l13no10290106iga.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=68.99.177.206; posting-account=S61AnQkAAADt4_PSYpI-Tm-z1E4cd7xa Original-NNTP-Posting-Host: 68.99.177.206 User-Agent: G2/1.0 Injection-Date: Thu, 24 Apr 2014 03:03:04 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:205087 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97353 Archived-At: Hi all. I'm doing a major overhaul of my emacs 24 init.el files. I'm trying to con= vert a lot of faces from dark to light to set up alternate themes. I know = I can just invert everything with invert-all-faces, but I want to do them i= ndividually and have the correct name. Does anyone have a function that takes a named color (e.g. "Red") and retur= ns the inverse? I guess it would convert the name to RRGGBB, subtract each= 8-bit value from 256, and then convert back to a name. Thanks for any help and/or pointers to useful functions! David