From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/37074 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: Re: Semi-transparent banners for a cover. Date: Sun, 28 Oct 2007 12:32:37 +0100 Message-ID: <47247355.3030703@gmx.net> References: <200710271751.15196.john@wexfordpress.com> 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 1193571186 16853 80.91.229.12 (28 Oct 2007 11:33:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Oct 2007 11:33:06 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Oct 28 12:33:07 2007 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 1Im6OB-0006Bo-SG for gctc-ntg-context-518@m.gmane.org; Sun, 28 Oct 2007 12:33:07 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6E4AB1FBE3; Sun, 28 Oct 2007 12:32:56 +0100 (CET) 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 30359-02-5; Sun, 28 Oct 2007 12:32:49 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id E231D1FB91; Sun, 28 Oct 2007 12:32:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D861C1FA80 for ; Sun, 28 Oct 2007 12:32:43 +0100 (CET) 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 30359-02-4 for ; Sun, 28 Oct 2007 12:32:37 +0100 (CET) Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by ronja.ntg.nl (Postfix) with SMTP id AF68E1FA3C for ; Sun, 28 Oct 2007 12:32:36 +0100 (CET) Original-Received: (qmail invoked by alias); 28 Oct 2007 11:32:36 -0000 Original-Received: from i577ADC51.versanet.de (EHLO [192.168.1.3]) [87.122.220.81] by mail.gmx.net (mp021) with SMTP; 28 Oct 2007 12:32:36 +0100 X-Authenticated: #24293357 X-Provags-ID: V01U2FsdGVkX19/XAlKQ2J/CMw2T0Cs1hsEKeYH8cU3b454bXRnHK PGUAHFbFkhKIRL User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: <200710271751.15196.john@wexfordpress.com> X-Enigmail-Version: 0.95.4 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:37074 Archived-At: Hi John, John Culleton schrieb: > A project specifies that for the cover of a brochure there be a photograph as > the background (doable in Context), and semi-transparent rectangles across > the page highlighting the various strings of text. The rectangles darken but > do not completely block out the underlying illustration. It is a layer > cake, a photo, with semi-transparent rectangles laid across it, and type > within the rectangles. > > This is a job more easily done in Gimp etc. but my question is, can it be done > in Context at all? How do I create the semi-transparent elements? > something like \startuniqueMPgraphic{transp:dim} fill OverlayBox withcolor transparent(1,.25,white); % mode,transp.,color \stopuniqueMPgraphic \defineoverlay[transp:dim] [\uniqueMPgraphic{transp:dim}] \framed[background=transp:dim]{your text} There are some problems with transparency in MP at the moment, so the fill color is fixed and not a parameter of the MP graphic. Anyhow, this should do the job. Peter ___________________________________________________________________________________ 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 ___________________________________________________________________________________