Bruce Horrocks schrieb am 06.05.2024 um 15:30:
On 6 May 2024, at 09:41, Hans van der Meer via ntg-context
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