[NTG-context] transparent metafun colors turn nearly black

Peter Rolf indiego at gmx.net
Sat Sep 23 19:28:52 CEST 2006


Hi Sanjoy,

Sanjoy Mahajan wrote:
> Just for (meta)fun, I tried a few experiments with transparent colors.
> The example below gives a black circle instead of a red one.  Is it that
> transparent colors aren't part of metafun -- which I can easily live
> with since color printing is too expensive still, alas -- or have I
> omitted an essential command?
>
No, as your example works here (beta 17.09.). I also tried your example
at contextgarden (same beta) and it worked too (using Firefox).

Maybe you also need
\runMPTEXgraphicstrue (enabled in my cont-sys.tex)?

Greetings, Peter

> ==================== cut here ====================
> \runMPgraphicstrue
> \setupcolors[state=start]
> \starttext
> \startreusableMPgraphic{a}
> % _inline_specials_ := true; % had hopes for this line, but no luck
> % next line taken as an example from mp-spec.mp
> fill fullcircle scaled 10cm withcolor transparent(8,.3,red);
> \stopreusableMPgraphic
> 
> \placefigure[force,none]{}{\reuseMPgraphic{a}}
> \stoptext
> ==================== cut here ====================
>
> The metapost output (testfile-mpgraph.1) always contains the following
> color setting, no matter what arguments I pass to transparent() :
> 
>  0.123 0.003 0.001 setrgbcolor
> 
> Which is close to black.
> 
> (This is all with ConTeXt 2006.08.08.  The live ConTeXt gives a square
> saying "undefined".)
> 
> -Sanjoy
> 
> `A society of sheep must in time beget a government of wolves.'
>    -- Bertrand de Jouvenal
> _______________________________________________
> ntg-context mailing list
> ntg-context at ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 
> 



More information about the ntg-context mailing list