[metapost] (newbie) macro with a sequence of pairs

luigi scarso luigi.scarso at gmail.com
Mon Dec 14 16:33:51 CET 2009


I'm pretty new about metapost programming
and I need to write a "polyline" macro
that take a with a "sequence of pairs"  like
(0,0) (10,10) (30,10)
and draw  a line
ie
polyline (0,0) (10,10) (30,10)
is
draw (0,0)--(10,10)--(30,30)

 Is it possible ?

TIA
--
luigi


More information about the metapost mailing list