* Eofill extension (Metafun)
@ 2019-12-08 21:02 Fabrice Couvreur
2019-12-09 2:21 ` Henri Menke
0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Couvreur @ 2019-12-08 21:02 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 624 bytes --]
Hello,
Is it possible to use the eofill extension in this code ? I tried without
success. Thank you.
Fabrice
\starttext
\startMPcode
path carre, disque;
carre = fullsquare scaled 200;
disque = fullcircle scaled 200;
draw carre numberstriped (.25,15,5) withcolor \MPcolor{magenta};
fill disque withcolor white;
draw carre withcolor \MPcolor{orange};
draw disque withcolor \MPcolor{orange};
path a[];
a1 = origin -- point 3.5 of carre;
interim ahangle := 30;
drawdblarrow a1 withpen pencircle scaled 1.5pt withcolor darkred;
label.top("$R$", point 1/2 of a1);
\stopMPcode
\stoptext
[-- Attachment #1.2: Type: text/html, Size: 1379 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
* Re: Eofill extension (Metafun)
2019-12-08 21:02 Eofill extension (Metafun) Fabrice Couvreur
@ 2019-12-09 2:21 ` Henri Menke
2019-12-09 13:28 ` Fabrice Couvreur
0 siblings, 1 reply; 3+ messages in thread
From: Henri Menke @ 2019-12-09 2:21 UTC (permalink / raw)
To: ntg-context
On 12/9/19 10:02 AM, Fabrice Couvreur wrote:
> Hello,
> Is it possible to use the eofill extension in this code ? I tried without
> success. Thank you.
No, eofill is basically just a frontend for the PDF primitive eofill,
which works on a single connected path that intersects itself.
If that wasn't enough, the numberstriped instruction does not return a
path but a picture and pictures are immutable.
> Fabrice
>
> \starttext
> \startMPcode
> path carre, disque;
>
> carre = fullsquare scaled 200;
> disque = fullcircle scaled 200;
>
> draw carre numberstriped (.25,15,5) withcolor \MPcolor{magenta};
> fill disque withcolor white;
>
> draw carre withcolor \MPcolor{orange};
> draw disque withcolor \MPcolor{orange};
>
> path a[];
> a1 = origin -- point 3.5 of carre;
>
> interim ahangle := 30;
> drawdblarrow a1 withpen pencircle scaled 1.5pt withcolor darkred;
> label.top("$R$", point 1/2 of a1);
> \stopMPcode
> \stoptext
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
>
___________________________________________________________________________________
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
* Re: Eofill extension (Metafun)
2019-12-09 2:21 ` Henri Menke
@ 2019-12-09 13:28 ` Fabrice Couvreur
0 siblings, 0 replies; 3+ messages in thread
From: Fabrice Couvreur @ 2019-12-09 13:28 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2304 bytes --]
Hello,
Thank you for these explanations.
Fabrice
Le lun. 9 déc. 2019 à 03:21, Henri Menke <henrimenke@gmail.com> a écrit :
> On 12/9/19 10:02 AM, Fabrice Couvreur wrote:
> > Hello,
> > Is it possible to use the eofill extension in this code ? I tried without
> > success. Thank you.
>
> No, eofill is basically just a frontend for the PDF primitive eofill,
> which works on a single connected path that intersects itself.
>
> If that wasn't enough, the numberstriped instruction does not return a
> path but a picture and pictures are immutable.
>
> > Fabrice
> >
> > \starttext
> > \startMPcode
> > path carre, disque;
> >
> > carre = fullsquare scaled 200;
> > disque = fullcircle scaled 200;
> >
> > draw carre numberstriped (.25,15,5) withcolor \MPcolor{magenta};
> > fill disque withcolor white;
> >
> > draw carre withcolor \MPcolor{orange};
> > draw disque withcolor \MPcolor{orange};
> >
> > path a[];
> > a1 = origin -- point 3.5 of carre;
> >
> > interim ahangle := 30;
> > drawdblarrow a1 withpen pencircle scaled 1.5pt withcolor darkred;
> > label.top("$R$", point 1/2 of a1);
> > \stopMPcode
> > \stoptext
> >
> >
> >
> ___________________________________________________________________________________
> > 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
> >
> ___________________________________________________________________________________
> >
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>
[-- Attachment #1.2: Type: text/html, Size: 4576 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:[~2019-12-09 13:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-08 21:02 Eofill extension (Metafun) Fabrice Couvreur
2019-12-09 2:21 ` Henri Menke
2019-12-09 13:28 ` Fabrice Couvreur
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).