From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15752 Path: main.gmane.org!not-for-mail From: Eckhart =?iso-8859-1?Q?Guth=F6hrlein?= Newsgroups: gmane.comp.tex.context Subject: Shading transparency / missing linear_shade variant Date: Fri, 23 Jul 2004 14:07:13 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <20040723120713.GF4547@cebitec.uni-bielefeld.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1090584651 1639 80.91.224.253 (23 Jul 2004 12:10:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Jul 2004 12:10:51 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 23 14:10:42 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bnyss-0001iy-00 for ; Fri, 23 Jul 2004 14:10:42 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 368401276F; Fri, 23 Jul 2004 14:10:42 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13077-08; Fri, 23 Jul 2004 14:10:42 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8A3381278C; Fri, 23 Jul 2004 14:07:17 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B99C11278C for ; Fri, 23 Jul 2004 14:07:15 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 13071-06-2 for ; Fri, 23 Jul 2004 14:07:15 +0200 (CEST) Original-Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE (unknown [129.70.160.28]) by ronja.ntg.nl (Postfix) with ESMTP id 36B621277E for ; Fri, 23 Jul 2004 14:07:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id E5E9E2D607 for ; Fri, 23 Jul 2004 14:07:14 +0200 (MEST) Original-Received: from smtp-relay.CeBiTec.Uni-Bielefeld.DE ([127.0.0.1]) by localhost (sauron [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03785-01-6 for ; Fri, 23 Jul 2004 14:07:14 +0200 (MEST) Original-Received: from baloo.Genetik.Uni-Bielefeld.DE (baloo.CeBiTec.Uni-Bielefeld.DE [129.70.160.60]) by smtp-relay.CeBiTec.Uni-Bielefeld.DE (Postfix) with ESMTP id 10EA02D606 for ; Fri, 23 Jul 2004 14:07:14 +0200 (MEST) Original-Received: by baloo.Genetik.Uni-Bielefeld.DE (Postfix, from userid 13119) id CFE51B0F; Fri, 23 Jul 2004 14:07:13 +0200 (MEST) Original-To: ntg-context@ntg.nl Mail-Followup-To: ntg-context@ntg.nl Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at cebitec.uni-bielefeld.de X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:15752 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15752 Hi all, experimenting with transparencies, I have obviously come to a limitation: color shading does not work for transparent colors. What I have in mind is a bar filled with a color gradient, starting from a certain (non-transparent) color and ending transparent, i.e. vanishing into the background. However, the transparent color appears just black. Furthermore, the shading variants for linear_shade do not correspond with those listed in the metafun manual, page 180. Variant 2 is missing and behaves like variant 3 should. Example: \setupcolors[state=start] \setupbackgrounds[page][background=color,backgroundcolor=red] \startMPenvironment[global] \definecolor[HeadLineColor][r=0,g=0,b=1] \definecolor[Transparent][r=1,g=1,b=1,t=0,a=normal] \stopMPenvironment \startreusableMPgraphic{test} numeric u; u=3cm; path p; p := unitsquare xscaled u yscaled u cornered (u/10); for i=0 upto 3 : linear_shade(p shifted(i*u,0),i,\MPcolor{HeadLineColor},\MPcolor{Transparent}); endfor; \stopreusableMPgraphic \starttext \reuseMPgraphic{test} \stoptext -- Eckhart