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 ___________________________________________________________________________________