From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/38796 Path: news.gmane.org!not-for-mail From: "Thomas A. Schmitz" Newsgroups: gmane.comp.tex.context Subject: Re: shading in metapost Date: Thu, 24 Jan 2008 09:15:17 +0100 Message-ID: References: <147F2658-35DC-4921-9AB6-090E744B8F04@uni-bonn.de> <608bfe540801161422w67c44ce3pd008f7e4778cc2be@mail.gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v915) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1201162646 11420 80.91.229.12 (24 Jan 2008 08:17:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Jan 2008 08:17:26 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jan 24 09:17:44 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 1JHxHI-0008B7-I2 for gctc-ntg-context-518@m.gmane.org; Thu, 24 Jan 2008 09:17:40 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id B2E891FBBE; Thu, 24 Jan 2008 09:17:05 +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 31978-02-3; Thu, 24 Jan 2008 09:16:21 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A49921FB6B; Thu, 24 Jan 2008 09:16:21 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 812461FB6B for ; Thu, 24 Jan 2008 09:16:20 +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 01267-01-2 for ; Thu, 24 Jan 2008 09:15:42 +0100 (CET) Original-Received: from mailout01.sul.t-online.com (mailout01.sul.t-online.de [194.25.134.80]) by ronja.ntg.nl (Postfix) with ESMTP id B271D1FB60 for ; Thu, 24 Jan 2008 09:15:42 +0100 (CET) Original-Received: from fwd30.aul.t-online.de by mailout01.sul.t-online.com with smtp id 1JHxFN-00017h-02; Thu, 24 Jan 2008 09:15:41 +0100 Original-Received: from mini (S+QI-YZTQhA6tQv6fUXUyZ72jdbM86Aba-oM5lMJdOEmz1df4IKaL4JGKw9eD1mZ3S@[87.178.72.231]) by fwd30.aul.t-online.de with esmtp id 1JHxF0-0RuBiy0; Thu, 24 Jan 2008 09:15:18 +0100 In-Reply-To: <608bfe540801161422w67c44ce3pd008f7e4778cc2be@mail.gmail.com> X-Mailer: Apple Mail (2.915) X-ID: S+QI-YZTQhA6tQv6fUXUyZ72jdbM86Aba-oM5lMJdOEmz1df4IKaL4JGKw9eD1mZ3S@t-dialin.net X-TOI-MSGID: 540aad28-f455-4109-a190-254b74dd07c3 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:38796 Archived-At: On Jan 16, 2008, at 11:22 PM, John Luciani wrote: > There is some information on doing transparencies in > METAPOST at http://www-math.univ-poitiers.fr/~phan/metalpha.html > > Using the code at the above link you should be able to produce > the effect in your jpeg. > > (* jcl *) John, I never thanked you for your message; sorry about that! Unless I'm missing something, this page is just about transparency, but that works quite well in metafun; it was the combination of transparency and shading which I couldn't get right. On Jan 24, 2008, at 1:28 AM, Mojca Miklavec wrote: > > In theory possible, but in practice not implemented in metafun. But > see > http://www.fauskes.net/media/pgf/pgfmanualCVS2008-01-23.pdf > It might satisfy your needs. (Impressive!) > > Mojca Thanks, Mojca, that's what I suspected. For the time being, I prefer metafun just because I know a little bit about it (and almost nothing about tikz). I have solved the problem at hand by drawing ten instances of a very transparent black circle on top of each other and increasing the scale of the pencircle slightly at every run. Which leads me to one last question: I wanted to be clever and do it in a for-loop like this: for i=1 upto 10: pickup pencircle scaled (i*0.5) pt ; draw fullcircle scaled 5mm withcolor transparent (1,0.04,black) ; endfor ; Is this because the expression "pencircle scaled" expects a "numeric primary" as argument? And is there any way around this? All best, and thanks to all 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 ___________________________________________________________________________________