Re: [NTG-context] Question about defining a path with Metapost

2018-12-20 Thread Alan Braslau
On Fri, 21 Dec 2018 00:17:25 +0100
Fabrice Couvreur  wrote:

> Why does the definition of the r path that Hans proposed give the
> same result as what I propose ?

Look at the definition of bottomboundary in mp-tool.mpiv
Use whatever you prefer.

You might also be interested in the modification that I added to
label:

label.llft("B", p) ;
label.lrt ("C", p) ;

etc.

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

[NTG-context] Question about defining a path with Metapost

2018-12-20 Thread Fabrice Couvreur
Hi,
I need to make a figure with shaded areas and I found this code proposed by
Hans. Why does the definition of the r path that Hans proposed give the
same result as what I propose ?
Thank you.
Fabrice

\starttext
\startMPpage[offset=2pt]
 path p, q, r ; pair z ;
 p := unitsquare scaled 4cm ;
 z := point 3.6 of p ;
 q := z--urcorner p ;
 r := z--urcorner p--lrcorner p--llcorner p--cycle ;
  %r := q -- reverse bottomboundary p -- cycle ; definition of Hans
 draw p ;
 draw r numberstriped (.25,10,5) withcolor magenta ;
 draw thetextext.llft("B", llcorner p) ;
 draw thetextext.lrt ("C", lrcorner p) ;
 draw thetextext.ulft("A", ulcorner p) ;
 draw thetextext.urt ("D", urcorner p) ;
 draw thetextext.lft ("M", z) ;
\stopMPpage
\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
___