From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/41749 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: metapost question Date: Wed, 18 Jun 2008 13:43:49 +0200 Message-ID: <115224fb0806180443s34305e5bs1d2831af2f5c077d@mail.gmail.com> 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 1213789808 20638 80.91.229.12 (18 Jun 2008 11:50:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2008 11:50:08 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Wed Jun 18 13:50:41 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 1K8wBV-0007vI-7n for gctc-ntg-context-518@m.gmane.org; Wed, 18 Jun 2008 13:50:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 830191FD30; Wed, 18 Jun 2008 13:49:50 +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 17072-08; Wed, 18 Jun 2008 13:49:16 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 30B771FD70; Wed, 18 Jun 2008 13:44:38 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 697EA1FD70 for ; Wed, 18 Jun 2008 13:44:34 +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 12631-01-41 for ; Wed, 18 Jun 2008 13:43:53 +0200 (CEST) Original-Received: from yw-out-1718.google.com (yw-out-1718.google.com [74.125.46.155]) by ronja.ntg.nl (Postfix) with ESMTP id EC9871FCF5 for ; Wed, 18 Jun 2008 13:43:52 +0200 (CEST) Original-Received: by yw-out-1718.google.com with SMTP id 5so192451ywm.74 for ; Wed, 18 Jun 2008 04:43:50 -0700 (PDT) Original-Received: by 10.150.139.15 with SMTP id m15mr912284ybd.182.1213789429870; Wed, 18 Jun 2008 04:43:49 -0700 (PDT) Original-Received: by 10.151.113.9 with HTTP; Wed, 18 Jun 2008 04:43:49 -0700 (PDT) In-Reply-To: <74C71BD5-9229-4712-9059-DBBFBB27DB7E@uni-bonn.de> Content-Disposition: inline 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:41749 Archived-At: On Wed, Jun 18, 2008 at 1:14 PM, Thomas A. Schmitz wrote: > 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? \setupexternalfigures[location={local,global,default}] \definecolor[tgray][r=.8,t=.5,a=1] \startuseMPgraphic{highlighted} path p, q ; p = unitsquare xyscaled(OverlayWidth,OverlayHeight) ; q= fullcircle scaled 3cm shifted (12cm,10cm) ; fill p--reverse q--cycle withcolor \MPcolor{tgray} ; \stopuseMPgraphic \defineoverlay[image][\overlayfigure{hacker}] \defineoverlay[shade][\useMPgraphic{highlighted}] \setupbackgrounds[page][background={image,shade}] \setuppapersize[S6][S6] \starttext \page[empty] \stoptext 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 ___________________________________________________________________________________