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? yours sincerely dr. Hans van der Meer
Am 06.05.24 um 10:41 schrieb Hans van der Meer via ntg-context:
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?
Interesting task. Perhaps via multitone colors? https://wiki.contextgarden.net/Spot_Colors Otherwise you can use \definetransparency and \starttransparent around \color (or \startcolor). Hraban
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. — Bruce Horrocks Hampshire, UK
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
Am 06.05.2024 um 10:41 schrieb Hans van der Meer via ntg-context
: 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?
I think like this: \definecolor[myred][r=.5] \defineprocesscolor[myredish][myred][a=1,t=.2]
Am 06.05.24 um 16:01 schrieb Jacob Kauffmann via ntg-context:
Am 06.05.2024 um 10:41 schrieb Hans van der Meer via ntg-context
: 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?
I think like this:
\definecolor[myred][r=.5] \defineprocesscolor[myredish][myred][a=1,t=.2]
Oh, another one that I didn’t know. (Of course it’s in the source, but only Wolfgang knows all of it. ;-) Hraban
participants (5)
-
Bruce Horrocks
-
Hans van der Meer
-
Henning Hraban Ramm
-
Jacob Kauffmann
-
Wolfgang Schuster