Difference between revisions of "Command/defineprocesscolor"
< Command
Jump to navigation
Jump to search
Line 23: | Line 23: | ||
</cd:description> | </cd:description> | ||
<cd:examples><cd:example title="Example of getting a transparent version of an existing color"><context source="yes"> | <cd:examples><cd:example title="Example of getting a transparent version of an existing color"><context source="yes"> | ||
− | \setupbodyfont[palatino, | + | \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] |
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