hi all I have another metapost probelem: I would like to have a shade effect like this: circular_shade(p,0,transparent(1,.25,white),transparent(1,.75,white)) ; but it seems that this doesn'n work wiht transparent colors. both of the transparent colors get black in the picture. Is there another simple solution to reach this effect? greez severin
At 09:18 16/04/2003 +0200, you wrote:
hi all
I have another metapost probelem: I would like to have a shade effect like this: circular_shade(p,0,transparent(1,.25,white),transparent(1,.75,white)) ; but it seems that this doesn'n work wiht transparent colors. both of the transparent colors get black in the picture. Is there another simple solution to reach this effect?
not yet, transparent shades are not supported (in pdf) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
----- Original Message -----
From: "Hans Hagen"
At 09:18 16/04/2003 +0200, you wrote:
hi all
I have another metapost probelem: I would like to have a shade effect like this: circular_shade(p,0,transparent(1,.25,white),transparent(1,.75,white)) ; but it seems that this doesn'n work wiht transparent colors. both of the transparent colors get black in the picture. Is there another simple solution to reach this effect?
not yet, transparent shades are not supported (in pdf)
Hans
ok, then I have to solve it in another way, and that leads me to another problem: I have two circles a:= fullcircle sized 1.1; and b:= fullcircle sized 1.4; how can I fill the area between the inner (a) and the outer (b) circle with a color?? so that the inner circle stays transparent. I think this is something simple but I didn't found an example for that. severin
------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
At 13:19 16/04/2003 +0200, you wrote:
ok, then I have to solve it in another way, and that leads me to another problem: I have two circles a:= fullcircle sized 1.1; and b:= fullcircle sized 1.4; how can I fill the area between the inner (a) and the outer (b) circle with a color?? so that the inner circle stays transparent. I think this is something simple but I didn't found an example for that.
well, if you are prepared for a puzzling solution: % output=pdftex \starttext \setupcolors[state=start] \startMPpage fill fullsquare rotated 45 scaled 4cm withcolor red ; fill fullcircle scaled 4cm -- reverse fullcircle scaled 3cm -- cycle ; \stopMPpage \stoptext (side effect: a reverse path does an unfill in ps/pdf) (I'll add this trick to the metafun manual) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
Hans Hagen
fill fullcircle scaled 4cm -- reverse fullcircle scaled 3cm -- cycle ;
I thought about reversing the path, too, but did not find any solution that is so "simple"! Patrick (happy to see such examples) PS:
\stopMPpage
how many different MP environments for ConTeXt are out there? MPcode, MPpage, useMPgraphic, uniqMPgraphic, MPlayer (?), MPfigure, ...
At 14:13 16/04/2003 +0200, you (patrick) wrote:
\stopMPpage
how many different MP environments for ConTeXt are out there? MPcode, MPpage, useMPgraphic, uniqMPgraphic, MPlayer (?), MPfigure, ...
MPcode : direct MPpage : aparte pagina usableMPgraphic : generated each time reusableMPgraphic : generated once (unless redefined) uniqueMPgraphic : generated only if overlay/var circumstances change (i'm playing with MPpagegraphics [adapt themselves to odd/even pages] but for the moment that's for my eyes only) MPlayer and MPfigure are just shortcuts Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
At 13:19 16/04/2003 +0200, you wrote:
ok, then I have to solve it in another way, and that leads me to another problem: I have two circles a:= fullcircle sized 1.1; and b:= fullcircle sized 1.4; how can I fill the area between the inner (a) and the outer (b) circle with a color?? so that the inner circle stays transparent. I think this is something simple but I didn't found an example for that.
well, if you are prepared for a puzzling solution:
% output=pdftex
\starttext
\setupcolors[state=start]
\startMPpage
fill fullsquare rotated 45 scaled 4cm withcolor red ;
fill fullcircle scaled 4cm -- reverse fullcircle scaled 3cm -- cycle ;
\stopMPpage
\stoptext
(side effect: a reverse path does an unfill in ps/pdf) (I'll add this
hi
this is a nice solution:)
thanks
severin
----- Original Message -----
From: "Hans Hagen"
to the metafun manual)
Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------
_______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
participants (3)
-
Hans Hagen
-
Patrick Gundlach
-
Severin Obertuefer