ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* metafun's "smoothed"
@ 2007-11-25 14:41 Mojca Miklavec
  2007-11-25 16:00 ` Aditya Mahajan
  0 siblings, 1 reply; 2+ messages in thread
From: Mojca Miklavec @ 2007-11-25 14:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-11-25 16:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-25 14:41 metafun's "smoothed" Mojca Miklavec
2007-11-25 16:00 ` Aditya Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).