Template:ColorSwatch

From Wiki of ZZT
Revision as of 09:32, 14 January 2021 by Quantum (talk | contribs) (Add documentation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ColorSwatch is a template to aid visualizing color combinations in ZZT. For example:

The player's color is {{ColorSwatch|fg=white|bg=dark blue}}.

Will be rendered as: The player's color is white on dark blue (0x1F).

It supports blinking and non-blinking colors, too:

Water is normally {{ColorSwatch|fg=blue|bg=gray|blinking}}, but if you have blinking off, it appears as {{ColorSwatch|fg=blue|bg=white}}.

Water is normally blinking blue on light gray (0xF9), but if you have blinking off, it appears as blue on white (0xF9).