Open main menu

Changes

1,483 bytes added ,  14:34, 9 November 2021
Created page with "Documentation for \showcolor"
<cd:commandgroup name="showcolor" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
<cd:shortdesc>The command <tt>\showcolor</tt> displays user-defined colors
</cd:shortdesc>
<cd:variants>
<cd:command category="colors" file="colo-run.mkiv" interfacedate="2020-07-14T09:24" interfacefile="i-color.xml" level="document" name="showcolor" variantnumber="1">
<cd:arguments>
<cd:keywords ordinal="1">
<cd:keywordsdoc></cd:keywordsdoc>
<cd:constant type="cd:color"></cd:constant>
</cd:keywords>
</cd:arguments>
</cd:command>
</cd:variants>
<cd:description>The command <tt>\showcolor</tt> displays user-defined colors.

It displays only user-defined colors and colorgroups, not the colors that are already defined by ConTeXt itself, nor colors that are loaded using {{cmd|usecolors}}</cd:description>
<cd:examples><cd:example title=""><context source="yes">
\definecolorgroup
[orange]
[1.00:0.95:0.90,
1.00:0.80:0.30,
0.80:0.50:0.00]

\definecolor[green][r=0.5,g=1,b=0.5]

\showcolor
</context></cd:example><cd:example title=""><context source="yes">
\definecolor[blue][r=0.4,g=0.4,b=1]

\showcolor [blue]
</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="definecolor"></cd:commandref>
<cd:wikipage page="Color"></cd:wikipage></cd:seealso>
</cd:commandgroup>