Open main menu

Changes

2,645 bytes added ,  14:48, 9 November 2021
Created page with "Documentation for \showpalet"
<cd:commandgroup name="showpalet" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc><!-- a short command summary goes here -->
The command <tt>\showpalet</tt> is used to display color palettes
</cd:shortdesc>
<cd:variants>
<cd:command category="colors" file="colo-run.mkiv" interfacedate="2020-07-14T09:24" interfacefile="i-color.xml" level="document" name="showpalet" variantnumber="1">
<cd:arguments>
<cd:keywords ordinal="1">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:name"></cd:constant>
</cd:keywords>
<cd:keywords list="yes" optional="yes" ordinal="2">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant default="yes" type="horizontal">horizontal display</cd:constant>
<cd:constant type="vertical">vertical display</cd:constant>
<cd:constant type="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).)</cd:constant>
<cd:constant type="value">print rgb values</cd:constant>
<cd:constant type="name">print palett names</cd:constant>
</cd:keywords>
</cd:arguments>
</cd:command>
</cd:variants>
<cd: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 <code>\showpalet</code> is used to graphically display colors being used in a particular palette.
</cd:description>
<cd:examples><cd:example title=""><texcode>
\usecolors[dem]
\showpalet [alfa] [vertical,name,number]
</texcode>

<context>
\usecolors[dem]
\setuplayout[scale=0.8]
\showpalet [alfa] [vertical,name,number]
</context>
</cd:example><cd:example title=""><texcode>
\usecolors[dem]
\showpalet [beta] [horizontal,name,number]
\showpalet [gamma] [horizontal,name]
\showpalet [delta] [horizontal,name]
\showpalet [epsilon] [horizontal,name]
\showpalet [zeta] [horizontal,name]
</texcode>

<context>
\usecolors[dem]
\setuplayout[scale=0.8]
\showpalet [beta] [horizontal,name,number]
\showpalet [gamma] [horizontal,name]
\showpalet [delta] [horizontal,name]
\showpalet [epsilon] [horizontal,name]
\showpalet [zeta] [horizontal,name]
</context></cd:example></cd:examples>
<cd:notes></cd:notes>
<cd:seealso>
<cd:source file="colo-run.mkiv" originator="system"></cd:source>
<cd:wikipage originator="system" page="Category:Colors"></cd:wikipage>
<cd:commandref name="definepalet"></cd:commandref>
<cd:wikipage page="Color"></cd:wikipage></cd:seealso>
</cd:commandgroup>