On 8/9/2019 10:57 AM, Fabrice Couvreur wrote:
Hello, In the Metafun manual, Hans uses macros like drawpath p ; drawcontrollines p ; drawpoints p ; drawcontrolpoints p ... How to use them in a document ? Where to find source codes ? For example, the following code does not work :
\starttext \startuseMPgraphic{path} path p ; p := (1cm,1cm)--(1.5cm,1.5cm)..(2cm,0cm)..cycle ; \stopuseMPgraphic
\startMPcode p := p .. cycle ; swappointlabels := true ; drawpath p ; \stopMPcode \stoptext \starttext
\startMPcode path p ; p := (1cm,1cm)--(1.5cm,1.5cm)..(2cm,0cm)..cycle ; drawpath p ; drawpoints p ; drawpointlabels p ; drawcontrolpoints p ; drawcontrollines p ; \stopMPcode \stoptext ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------