Bruce Horrocks schrieb am 06.05.2024 um 15:30:
On 6 May 2024, at 09:41, Hans van der Meer via ntg-context <ntg-context@ntg.nl>
wrote:
I would like to use a transparent version of an existing color. Thus
\definecolor[transparentcolor][color,t=0.2,a=1]
instead of
\definecolor[transparentcolor][r=..,g=..,b=..,t=0.2,a=1]
because I do not know the rgb values of the color that must be made
transparent, only its name.
How to accomplish?
The Wiki page <https://wiki.contextgarden.net/Color> gives the source files for
various sets of colours (built in, crayola etc) and the source has the RGB values in
a fairly obvious format.
\definecolor [wolley] [\colorcomponents{yellow},t=0.5,a=1]
\starttext
%\showcolorcomponents [yellow]
\framed[background=color,backgroundcolor=darkblue,foregroundcolor=yellow]{yellow}
\framed[background=color,backgroundcolor=darkblue,foregroundcolor=wolley]{wolley}
\stoptext
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________