Difference between revisions of "Command/defineprocesscolor"

From Wiki
Jump to navigation Jump to search
(Created page with "Documentation for \defineprocesscolor")
 
Line 22: Line 22:
 
<cd:description><!-- the long description of the command goes here -->
 
<cd:description><!-- the long description of the command goes here -->
 
</cd:description>
 
</cd:description>
<cd:examples><cd:example title="Example of getting a transparent version of an existing color">\setupbodyfont[palatino,30pt]
+
<cd:examples><cd:example title="Example of getting a transparent version of an existing color"><context source="yes">
 +
\setupbodyfont[palatino,30pt]
 
\definecolor[myred][r=.5]
 
\definecolor[myred][r=.5]
 
\defineprocesscolor[myredish][myred][a=1,t=.5]
 
\defineprocesscolor[myredish][myred][a=1,t=.5]
 
Three \color[red]{cool} cats \par
 
Three \color[red]{cool} cats \par
 
Three \color[myred]{cool} cats \par
 
Three \color[myred]{cool} cats \par
Three \color[myredish]{cool} cats</cd:example></cd:examples>
+
Three \color[myredish]{cool} cats
 +
</context></cd:example></cd:examples>
 
<cd:notes></cd:notes>
 
<cd:notes></cd:notes>
 
<cd:seealso>
 
<cd:seealso>

Revision as of 10:05, 8 May 2024


\defineprocesscolor

Summary

The command \defineprocesscolor allows to define a color by modifying an existing color.

Settings

\defineprocesscolor[...][...][...=...,...]
[...]name
[...]color
...=...,...inherits from \definecolor

Description

Examples

Example of getting a transparent version of an existing color

\setupbodyfont[palatino,30pt]
\definecolor[myred][r=.5]
\defineprocesscolor[myredish][myred][a=1,t=.5]
Three \color[red]{cool} cats \par
Three \color[myred]{cool} cats \par
Three \color[myredish]{cool} cats

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: