Difference between revisions of "Command/defineprocesscolor"
< Command
Jump to navigation
Jump to search
(Created page with "Documentation for \defineprocesscolor") |
|||
(One intermediate revision by the same user not shown) | |||
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, | + | <cd:examples><cd:example title="Example of getting a transparent version of an existing color"><context source="yes"> |
+ | \setupbodyfont[palatino,20pt] | ||
\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
Contents
\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,20pt] \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