Re: envelope

"Daniel H. Luecking" <[email protected]>
Newsgroups gmane.comp.tex.metapost
Message-ID <[email protected]>
Nicola:

The syntax is 
   envelope <polygonal pen> of <path primary>

For example, 
  path p;
  p := envelope pensquare of (up--left);

It returns the path which, when filled, produces the effect of stroking 
the pen along the path. Elliptical pens (e.g., pencircle) produce an error.

Stroking an elliptical pen is simply passed on to PostScript. But polygonal 
pens (inherited from metafont) require this as a workaround.

I deduced this by a little trial and error based on some descriptions in 
the web source mp.w.

Cheers,

Daniel H. Luecking [[email protected]]
Department of Mathematical Sciences
1 University of Arkansas
Fayetteville, AR, USA 72701-1201

________________________________________
From: metapost <[email protected]> on behalf of Nicola <[email protected]>
Sent: Thursday, September 15, 2016 7:44 AM
To: [email protected]
Subject: [metapost] envelope

Hi,
quick question: 'envelope' is a MetaPost's spark (not documented in the
manual);
An old note of mine says that it was introduced in mpost 1.003. What is it for?
Could you make an example of how to use it?

Thanks,
Nicola


--
http://tug.org/metapost/

--
http://tug.org/metapost/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.