ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: metafun's "smoothed"
Date: Sun, 25 Nov 2007 11:00:24 -0500 (EST)	[thread overview]
Message-ID: <alpine.DEB.0.9999.0711251058510.5716@nqv-yncgbc> (raw)
In-Reply-To: <6faad9f00711250641r47622566n65bc081f709e14a9@mail.gmail.com>

On Sun, 25 Nov 2007, Mojca Miklavec wrote:

> 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

Replying from memory here so I may be wrong. From what I remember, 
smoothed has a ..cycle in its definition. Compare the definition of 
punked and smoothed and modify smoothed accordingly. I remember doing this 
once to get a smoothed curve.

Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________


      reply	other threads:[~2007-11-25 16:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-25 14:41 Mojca Miklavec
2007-11-25 16:00 ` Aditya Mahajan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.DEB.0.9999.0711251058510.5716@nqv-yncgbc \
    --to=adityam@umich.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).