Template:InverseColor

From Zelda Wiki, the Zelda encyclopedia

Revision as of 09:32, 21 March 2011 by Matt (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Purpose

This template takes a color and gives its inverse, i.e. complimentary, color. This is the color that will contrast the most with the given color. Basic examples of such color pairs are black and white, blue and yellow, red and cyan, or green and magenta. Basically, if finds what color, when added to the given color, will give white (FFFFFF or FFF).

Usage

To use this template, type:     {{InverseColor| Color }}

If the resulting color can be simplified to a 3-digit hexadecimal code, the template will automatically do so.

Examples

Personal tools
Namespaces
Variants
Actions
Navigation
Community
Community Partners
Toolbox