all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* function to get inverse color name?
@ 2014-04-24  3:03 unfrostedpoptart
  2014-04-24 13:44 ` Drew Adams
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: unfrostedpoptart @ 2014-04-24  3:03 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-04-24 22:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-24  3:03 function to get inverse color name? unfrostedpoptart
2014-04-24 13:44 ` Drew Adams
2014-04-24 18:08   ` David Rogoff
2014-04-24 17:51 ` Emanuel Berg
2014-04-24 22:58 ` Emanuel Berg

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.