Difference between revisions of "Command/showpalet"
< Command
Jump to navigation
Jump to search
(Created page with "Documentation for \showpalet") |
(No difference)
|
Revision as of 14:48, 9 November 2021
Contents
\showpalet
Summary
The command \showpalet is used to display color palettes
Settings
\showpalet[...][...,...] | |
[...] | name |
[...,...] | horizontal vertical number value name |
Option | Explanation |
---|---|
horizontal | horizontal display |
vertical | vertical display |
number | print color 'numbers' (actually, the quark name to which the color gets assigned (Hans happened to be reading S. Hawking's A hort history of time at the time of implementing color palettes).) |
value | print rgb values |
name | print palett names |
Description
Colors can be grouped in palettes. The colors in such a palette can have colorful names, but best is to use names that specify their use, like important or danger. ConTeXt has some palettes predefined and
\showpalet
is used to graphically display colors being used in a particular palette.
Examples
Example 1
\usecolors[dem] \showpalet [alfa] [vertical,name,number]
Example 2
\usecolors[dem] \showpalet [beta] [horizontal,name,number] \showpalet [gamma] [horizontal,name] \showpalet [delta] [horizontal,name] \showpalet [epsilon] [horizontal,name] \showpalet [zeta] [horizontal,name]