From: unfrostedpoptart <david@therogoffs.com>
To: help-gnu-emacs@gnu.org
Subject: function to get inverse color name?
Date: Wed, 23 Apr 2014 20:03:04 -0700 (PDT) [thread overview]
Message-ID: <2c7e7b5b-73ec-45ae-9bf5-b638aad861ff@googlegroups.com> (raw)
Hi all.
I'm doing a major overhaul of my emacs 24 init.el files. I'm trying to convert 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 individually and have the correct name.
Does anyone have a function that takes a named color (e.g. "Red") and returns 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
next reply other threads:[~2014-04-24 3:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-24 3:03 unfrostedpoptart [this message]
2014-04-24 13:44 ` function to get inverse color name? Drew Adams
2014-04-24 18:08 ` David Rogoff
2014-04-24 17:51 ` Emanuel Berg
2014-04-24 22:58 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2c7e7b5b-73ec-45ae-9bf5-b638aad861ff@googlegroups.com \
--to=david@therogoffs.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).