* Using transparency in METAPOST within textext()
@ 2020-05-14 9:47 Gerben Wierda
2020-05-14 15:13 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Gerben Wierda @ 2020-05-14 9:47 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 419 bytes --]
Is it possible to get a transparent background in a textext()? The following minimal example doesn’t work.
\starttext
\setupMPpage
[background=color,
backgroundcolor=gray]
\startMPpage
draw textext("\definecolor[labelbackground][a=0.2,r=1,g=1,b=1]\framed[height=1.2em,background=color,backgroundcolor=labelbackground,foregroundcolor=black]{Text in Label}");
\stopMPpage
\stoptext
Thx.
G
[-- Attachment #1.2.1: Type: text/html, Size: 2008 bytes --]
[-- Attachment #1.2.2: PastedGraphic-1.png --]
[-- Type: image/png, Size: 13084 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Using transparency in METAPOST within textext()
2020-05-14 9:47 Using transparency in METAPOST within textext() Gerben Wierda
@ 2020-05-14 15:13 ` Wolfgang Schuster
2020-05-14 16:03 ` Gerben Wierda
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2020-05-14 15:13 UTC (permalink / raw)
To: mailing list for ConTeXt users, Gerben Wierda
Gerben Wierda schrieb am 14.05.2020 um 11:47:
> Is it possible to get a transparent background in a textext()? The
> following minimal example doesn’t work.
>
> \starttext
> \setupMPpage
> [background=color,
> backgroundcolor=gray]
> \startMPpage
> draw
> textext("\definecolor[labelbackground][a=0.2,r=1,g=1,b=1]
\definecolor[labelbackground][a=1,t=0.2,r=1,g=1,b=1]
Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Using transparency in METAPOST within textext()
2020-05-14 15:13 ` Wolfgang Schuster
@ 2020-05-14 16:03 ` Gerben Wierda
0 siblings, 0 replies; 3+ messages in thread
From: Gerben Wierda @ 2020-05-14 16:03 UTC (permalink / raw)
To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users
Thank you. That works.
> On 14 May 2020, at 17:13, Wolfgang Schuster <wolfgang.schuster.lists@gmail.com> wrote:
>
> Gerben Wierda schrieb am 14.05.2020 um 11:47:
>> Is it possible to get a transparent background in a textext()? The following minimal example doesn’t work.
>> \starttext
>> \setupMPpage
>> [background=color,
>> backgroundcolor=gray]
>> \startMPpage
>> draw textext("\definecolor[labelbackground][a=0.2,r=1,g=1,b=1]
>
> \definecolor[labelbackground][a=1,t=0.2,r=1,g=1,b=1]
>
> Wolfgang
G
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-05-14 16:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-14 9:47 Using transparency in METAPOST within textext() Gerben Wierda
2020-05-14 15:13 ` Wolfgang Schuster
2020-05-14 16:03 ` Gerben Wierda
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).