ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: How to "unfill" a picture?
Date: Wed, 24 Jun 2009 10:21:31 +0200	[thread overview]
Message-ID: <60138A42-2DCC-4322-8961-2349F2CE8EAA@gmail.com> (raw)
In-Reply-To: <769ba7780906232013r6e343aabn577e902e5dc340d9@mail.gmail.com>


Am 24.06.2009 um 05:13 schrieb Zhichu Chen:

> Hi, I got a problem in metapost. If I want to draw a ring, and
> use the code:
> fill fullcircle scaled 2cm ;
> unfill fullcircle scaled 1cm ;
> The inner part is not transparent, it has the color of "background"
> variable which is "white" by default.
>
> This case is a minimal example, I actually wanna draw something
> more complex, like the glyph "Q" and I know the inner path and
> outer path. How can I fill the ring without jeopardizing the area  
> inside
> the inner path?

fill fullcircle scaled 2cm -- reverse -- fullcircle scaled 1cm --  
cycle ;

Wolfgang

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


  parent reply	other threads:[~2009-06-24  8:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-24  3:13 Zhichu Chen
2009-06-24  6:55 ` Zhichu Chen
2009-06-24  7:32   ` Taco Hoekwater
2009-06-24  7:48     ` Zhichu Chen
2009-06-24  9:02       ` Taco Hoekwater
2009-06-24  8:21 ` Wolfgang Schuster [this message]
2009-06-24 10:42   ` Zhichu Chen
2009-06-24 10:59     ` Zhichu Chen
2009-06-24 11:29       ` Hans Hagen
2009-06-24 11:42         ` Zhichu Chen
2009-06-24 14:12     ` Nicola
2009-06-24 14:45       ` Zhichu Chen
2009-06-25  5:15         ` Lutz Haseloff

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=60138A42-2DCC-4322-8961-2349F2CE8EAA@gmail.com \
    --to=schuster.wolfgang@googlemail.com \
    --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).