Command/defineprocesscolor

From Wiki
< Command
Revision as of 10:19, 8 May 2024 by Garulfoo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


\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        [myyellow]                 [r=1,g=1.,b=0.]
    \defineprocesscolor [mytrspyellowA] [myyellow] [a=1,t=.5]
    \definecolor        [mytrspyellowB]            [\colorcomponents{myyellow},a=1,t=.5]
    
    \framed[background=color,backgroundcolor=darkblue,foregroundcolor=yellow]{yellow}
    
    \framed[background=color,backgroundcolor=darkblue,foregroundcolor=mytrspyellowA]{Transparent yellow A}
    
    \framed[background=color,backgroundcolor=darkblue,foregroundcolor=mytrspyellowB]{Transparent yellow B}
    

Notes

See also

Help from ConTeXt-Mailinglist/Forum

All issues with: