Using transparency in METAPOST within textext()
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
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
Thank you. That works.
On 14 May 2020, at 17:13, Wolfgang Schuster
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
participants (2)
-
Gerben Wierda
-
Wolfgang Schuster