ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ConTeXt <ntg-context@ntg.nl>
Subject: Re: MetaFun refill/do_repath bug
Date: Mon, 16 Sep 2002 18:29:55 +0200	[thread overview]
Message-ID: <5.1.0.14.1.20020916181949.01fe9808@server-1> (raw)
In-Reply-To: <20020916173130.57957f34.morawski@gmx.net>

At 05:31 PM 9/16/2002 +0200, Jens-Uwe Morawski wrote:

>Ahoi Hans,
>
>i wrote an article for the magazine of the german TUG that explains
>some advanced features of MetaPost. Esp. it explains the
>within,pathpart,penpart... stuff. In the article i give an example
>that refills all filled elements of a picture with a new color.
>
>The article is not yet published, but one who has proof-read the
>article told me that an equal macro is provided by MetaFun. A little
>bit surprised, since i thought that i know most of the MetaFun

did a short talk on some of those metafun thingies at the last dante 
meeting -)

>features, i've tried the "refill" macro and was surprised again, since
>it does not work correctly (IMO). The problem is that the macro
>"do_repath" does not handle clipped and bounded graphic elements
>correctly.
>
>Your macro ignores totally that clipped and bounded elements
>contain again some more graphic elements, i.e. lines, filled
>paths etc. Therefore the macro has to be applied recursively to
>these elements too. Furthermore the pathpart of a clipped
>or bounded object has to be applied only to the elements in
>that object and not to the whole picture.

hm, will look into it, kind of funny that "i" then is a path and picture at 
the same time

>Please find below a MP-file that illustrates what i mean.
>It compares the macro "uniformfilled" from my article with
>your "refill".

btw, a real robust solution also takes fonts into account so i'll have a 
look at that (fontpart and textpart)

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------


  reply	other threads:[~2002-09-16 16:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-16 15:31 Jens-Uwe Morawski
2002-09-16 16:29 ` Hans Hagen [this message]
2002-09-16 20:03   ` Jens-Uwe Morawski
2002-09-17  7:57     ` Hans Hagen

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=5.1.0.14.1.20020916181949.01fe9808@server-1 \
    --to=pragma@wxs.nl \
    --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).