[NTG-context] metafun's "smoothed"

Mojca Miklavec mojca.miklavec.lists at gmail.com
Sun Nov 25 15:41:22 CET 2007


Hello Hans,

What exactly is the intended function of "smooothed"? I thought that
the following should work and make round corners, but it only takes
the bounding box. (I didn't play with it yet, but I assume that
"punked" behaves in a similar way to what I would expect - it modifies
the whole curve.)

\starttext
\startMPcode
path p;
% return
p := ((0,0)--(1,0)--(1,2)--(-0.5,2)--(-0.5,1)--(0,1)--cycle) scaled 1cm;
draw p;
draw p smoothed 1mm shifted (3cm,0);
\stopMPcode
\stoptext

Thanks,
    Mojca


More information about the ntg-context mailing list