From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/41752 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: metapost question Date: Wed, 18 Jun 2008 13:58:40 +0200 Message-ID: <4858F870.3050104@gmx.net> References: <74C71BD5-9229-4712-9059-DBBFBB27DB7E@uni-bonn.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1213795551 9492 80.91.229.12 (18 Jun 2008 13:25:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2008 13:25:51 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 18 15:26:24 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 1K8xg8-00046w-7a for gctc-ntg-context-518@m.gmane.org; Wed, 18 Jun 2008 15:26:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 940D91FC5D; Wed, 18 Jun 2008 15:25:30 +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 26804-01-5; Wed, 18 Jun 2008 15:24:45 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DEAED1FC39; Wed, 18 Jun 2008 14:02:24 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ADBD71FC1A for ; Wed, 18 Jun 2008 14:02:22 +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 17787-01-12 for ; Wed, 18 Jun 2008 14:01:37 +0200 (CEST) Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by ronja.ntg.nl (Postfix) with SMTP id CEF291FDEE for ; Wed, 18 Jun 2008 13:58:41 +0200 (CEST) Original-Received: (qmail invoked by alias); 18 Jun 2008 11:58:40 -0000 Original-Received: from i5387DD69.versanet.de (EHLO [192.168.1.3]) [83.135.221.105] by mail.gmx.net (mp056) with SMTP; 18 Jun 2008 13:58:40 +0200 X-Authenticated: #24293357 X-Provags-ID: V01U2FsdGVkX18Ot0IDDw8Oc+j95v+LDNFlxs8rkUJ97Ps0Jp4Nye 3mVWRJmeI1+jCL User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) In-Reply-To: <74C71BD5-9229-4712-9059-DBBFBB27DB7E@uni-bonn.de> X-Enigmail-Version: 0.95.6 X-Y-GMX-Trusted: 0 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:41752 Archived-At: Thomas A. Schmitz schrieb: > Hi all, > > probably an easy question: for a presentation, I would like to have an > area of my slide highlighted by placing a transparent grey layer on > top of the slide and having one area of this layer completely > transparent, a bit like this screenshot: http://debaday.debian.net/wp-content/uploads/2007/05/key3.jpg > Any suggestions for the easiest way to achieve this effect? > > Thanks > \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 > 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 > ___________________________________________________________________________________ > ___________________________________________________________________________________ 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 ___________________________________________________________________________________