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
On Fri, 21 Dec 2018 00:17:25 +0100
Fabrice Couvreur
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
participants (2)
-
Alan Braslau
-
Fabrice Couvreur