ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* 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

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).