Hello,

suppose having the following code:

----
\startuseMPgraphic{T}
  newpath rc; rc := fullsquare xyscaled (50mm, 50mm);
  color col; col := (1.,.1,.1);
  draw rc withpen pencircle scaled (2.5mm) withcolor %col;
                                                     transparent(1, .4, col);

  draw thelabel(btex\setupbodyfont[sans,35mm] Test etex, (80mm, 50mm))
    withcolor %col
              transparent(1, .4, col)
    ;
\stopuseMPgraphic

\defineoverlay[T][\useMPgraphic{T}]

\setupbackgrounds[page][background={foreground,T}]

\startTEXpage[width=200mm,height=200mm]
\stopTEXpage
----

The rectangle drawn is transparent, which is OK.

But the text "Test" is not, is it fully red; why?

How to specify text to be partially transparent, too?

TIA.

Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.      | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751 (+420 720 951 172)
Fax: +420 244 461 038

Attachment: MP-Trans.mkiv
Description: Binary data

Attachment: MP-Trans.pdf
Description: Adobe PDF document

___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to