ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* meta post problem
@ 2003-04-16  7:18 Severin Obertuefer
  2003-04-16 10:10 ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Severin Obertuefer @ 2003-04-16  7:18 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: meta post problem
  2003-04-16  7:18 meta post problem Severin Obertuefer
@ 2003-04-16 10:10 ` Hans Hagen
  2003-04-16 11:19   ` Severin Obertuefer
  0 siblings, 1 reply; 7+ messages in thread
From: Hans Hagen @ 2003-04-16 10:10 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: meta post problem
  2003-04-16 10:10 ` Hans Hagen
@ 2003-04-16 11:19   ` Severin Obertuefer
  2003-04-16 11:46     ` meta post problem / solution Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Severin Obertuefer @ 2003-04-16 11:19 UTC (permalink / raw)



----- Original Message -----
From: "Hans Hagen" <pragma@wxs.nl>
To: <ntg-context@ntg.nl>
Sent: Wednesday, April 16, 2003 12:10 PM
Subject: Re: [NTG-context] meta post problem


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: meta post problem / solution
  2003-04-16 11:19   ` Severin Obertuefer
@ 2003-04-16 11:46     ` Hans Hagen
  2003-04-16 12:13       ` Patrick Gundlach
  2003-04-16 13:25       ` Severin Obertuefer
  0 siblings, 2 replies; 7+ messages in thread
From: Hans Hagen @ 2003-04-16 11:46 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: meta post problem / solution
  2003-04-16 11:46     ` meta post problem / solution Hans Hagen
@ 2003-04-16 12:13       ` Patrick Gundlach
  2003-04-16 15:58         ` Hans Hagen
  2003-04-16 13:25       ` Severin Obertuefer
  1 sibling, 1 reply; 7+ messages in thread
From: Patrick Gundlach @ 2003-04-16 12:13 UTC (permalink / raw)


Hans Hagen <pragma@wxs.nl> writes:

Hi,

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: meta post problem / solution
  2003-04-16 11:46     ` meta post problem / solution Hans Hagen
  2003-04-16 12:13       ` Patrick Gundlach
@ 2003-04-16 13:25       ` Severin Obertuefer
  1 sibling, 0 replies; 7+ messages in thread
From: Severin Obertuefer @ 2003-04-16 13:25 UTC (permalink / raw)


hi

this is a nice solution:)
thanks
severin
----- Original Message -----
From: "Hans Hagen" <pragma@wxs.nl>
To: <ntg-context@ntg.nl>
Sent: Wednesday, April 16, 2003 1:46 PM
Subject: Re: [NTG-context] meta post problem / solution


> 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
> -------------------------------------------------------------------------
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Re: meta post problem / solution
  2003-04-16 12:13       ` Patrick Gundlach
@ 2003-04-16 15:58         ` Hans Hagen
  0 siblings, 0 replies; 7+ messages in thread
From: Hans Hagen @ 2003-04-16 15:58 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-04-16 15:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-16  7:18 meta post problem Severin Obertuefer
2003-04-16 10:10 ` Hans Hagen
2003-04-16 11:19   ` Severin Obertuefer
2003-04-16 11:46     ` meta post problem / solution Hans Hagen
2003-04-16 12:13       ` Patrick Gundlach
2003-04-16 15:58         ` Hans Hagen
2003-04-16 13:25       ` Severin Obertuefer

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