Difference between revisions of "Command/colorcomponents"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \colorcomponents")
 
Line 1: Line 1:
 
<cd:commandgroup name="colorcomponents" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
 
<cd:commandgroup name="colorcomponents" xmlns:cd="http://wiki.contextgarden.net/commanddoc/20200807">
 
<cd:shortdesc><!-- a short command summary goes here -->
 
<cd:shortdesc><!-- a short command summary goes here -->
The command is used to obtain the definition of a color.  
+
The command is used to obtain the definition of a color.
  
 
</cd:shortdesc>
 
</cd:shortdesc>
Line 17: Line 17:
 
</cd:description>
 
</cd:description>
 
<cd:examples><cd:example title=""><context source="yes">
 
<cd:examples><cd:example title=""><context source="yes">
\setupbodyfont[palatino,30pt]
 
 
\definecolor [wolley] [\colorcomponents{yellow},t=0.5,a=1]
 
\definecolor [wolley] [\colorcomponents{yellow},t=0.5,a=1]
 
\showcolorcomponents [yellow]
 
\showcolorcomponents [yellow]
 +
 +
\setupbodyfont[palatino,30pt]
 
\framed[background=color,backgroundcolor=darkblue,foregroundcolor=yellow]{yellow}
 
\framed[background=color,backgroundcolor=darkblue,foregroundcolor=yellow]{yellow}
 
\framed[background=color,backgroundcolor=darkblue,foregroundcolor=wolley]{wolley}
 
\framed[background=color,backgroundcolor=darkblue,foregroundcolor=wolley]{wolley}

Revision as of 10:09, 8 May 2024


\colorcomponents

Summary

The command is used to obtain the definition of a color.


Settings

\colorcomponents{...}
{...}color

Description

Examples

Example 1

\definecolor [wolley] [\colorcomponents{yellow},t=0.5,a=1]
\showcolorcomponents [yellow]

\setupbodyfont[palatino,30pt]
\framed[background=color,backgroundcolor=darkblue,foregroundcolor=yellow]{yellow}
\framed[background=color,backgroundcolor=darkblue,foregroundcolor=wolley]{wolley}

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: