From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/41751 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: metapost question Date: Wed, 18 Jun 2008 14:11:36 +0200 Message-ID: <289FF555-61A9-4C1F-98FE-6301A092E57C@uni-bonn.de> References: <74C71BD5-9229-4712-9059-DBBFBB27DB7E@uni-bonn.de> <4858F870.3050104@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v924) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1213791210 26112 80.91.229.12 (18 Jun 2008 12:13:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2008 12:13:30 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 18 14:14:13 2008 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1K8wY8-0000uy-7h for gctc-ntg-context-518@m.gmane.org; Wed, 18 Jun 2008 14:14:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 57A681FDF0; Wed, 18 Jun 2008 14:13:13 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17555-01-28; Wed, 18 Jun 2008 14:12:32 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ECE1A1FD8A; Wed, 18 Jun 2008 14:12:28 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 075A81FD0A for ; Wed, 18 Jun 2008 14:12:26 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16067-02-41 for ; Wed, 18 Jun 2008 14:11:45 +0200 (CEST) Original-Received: from mailout02.t-online.de (mailout02.t-online.de [194.25.134.17]) by ronja.ntg.nl (Postfix) with ESMTP id 441821FD8A for ; Wed, 18 Jun 2008 14:11:45 +0200 (CEST) Original-Received: from fwd27.aul.t-online.de by mailout02.sul.t-online.de with smtp id 1K8wVs-00087Z-04; Wed, 18 Jun 2008 14:11:44 +0200 Original-Received: from [192.168.0.2] (EAUWsUZJwhqKSwuLJ-xIblha4m-kgkSPBhGx71hZ0fIOF9sPkCfsHgkkbZhGXb8ZJ4@[87.178.70.109]) by fwd27.aul.t-online.de with esmtp id 1K8wVl-03SU9A0; Wed, 18 Jun 2008 14:11:37 +0200 In-Reply-To: <4858F870.3050104@gmx.net> X-Mailer: Apple Mail (2.924) X-ID: EAUWsUZJwhqKSwuLJ-xIblha4m-kgkSPBhGx71hZ0fIOF9sPkCfsHgkkbZhGXb8ZJ4@t-dialin.net X-TOI-MSGID: afde2274-a931-4ccc-a619-5d2a47dce550 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:41751 Archived-At: On Jun 18, 2008, at 1:58 PM, Peter Rolf wrote: > \startuniqueMPgraphic{dim:and:focus}{fw,fh,fx,fy,c} > begingroup > save q ; > path q; > > q:= (unitsquare xyscaled(\MPvar{fw},\MPvar{fh}) > smoothed 4px) > shifted (\MPvar{fx},\MPvar{fy}); > > fill OverlayBox--reverse q-- cycle withcolor \MPvar{c} ; > > % draw q withpen pxcpen withcolor darkgray; > setbounds currentpicture to OverlayBox ; % just to be safe in case > of > outside focus rectangle > endgroup; > \stopuniqueMPgraphic > > no further explanations :D > > best wishes, peter Peter, Wolfgang, thanks so much! I had no idea "reverse" could work like this, wonderful. I will try and build this into my presentation module. Thomas ___________________________________________________________________________________ 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 ___________________________________________________________________________________