From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/3574 Path: main.gmane.org!not-for-mail From: Ed L Cashin Newsgroups: gmane.comp.tex.context Subject: Re: MetaFun Date: 12 Dec 2000 10:35:51 -0500 Sender: owner-ntg-context@let.uu.nl Message-ID: References: <20001211135633.R1834@cs.ucc.ie> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035394303 18250 80.91.224.250 (23 Oct 2002 17:31:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 17:31:43 +0000 (UTC) Cc: Mailing List Original-To: Marc van Dongen Xref: main.gmane.org gmane.comp.tex.context:3574 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:3574 Marc van Dongen writes: > Hello, > > > This time no questions. > I hope some people will enjoy the metafun appended > below. I'm sure it could have done a bit more > elegantly, but this does the trick as well. (See > also: htpp://www.cs.ucc.ie/~dongen/xmas.pdf (55020 bytes). Great! Thanks. > In case some people are wondering; I did part of > the picture in xfig first and then used the > coordinates to write the metapost code. If people > know of better (more clever) ways of doing this > then I would be delighted to find out. I don't know if this is your style or if it fits your application, but instead of writing out a long list of points, I sometimes find it easier to use a for loop. I can declare a metapost array for holding points or paths, and then initialize it using a for loop and some simple math. It makes the code much easier to read, understand, and maintain. -- --Ed Cashin PGP public key: ecashin@coe.uga.edu http://www.coe.uga.edu/~ecashin/pgp/