[NTG-context] Using transparency in METAPOST within textext()
Gerben Wierda
gerben.wierda at rna.nl
Thu May 14 11:47:21 CEST 2020
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200514/2c809107/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.png
Type: image/png
Size: 13084 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200514/2c809107/attachment-0001.png>
More information about the ntg-context
mailing list