From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/11165 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: MetaFun questions Date: Mon, 03 Mar 2003 22:10:27 +0100 Sender: ntg-context-admin@ntg.nl Message-ID: <5.1.0.14.1.20030303220936.02449970@server-1> References: <5.1.0.14.1.20030227155333.02435320@server-1> <20030227140929.20dd563d.morawski@gmx.net> <5.1.0.14.1.20030227155333.02435320@server-1> Reply-To: ntg-context@ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1046768869 20063 80.91.224.249 (4 Mar 2003 09:07:49 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 4 Mar 2003 09:07:49 +0000 (UTC) Original-X-From: ntg-context-admin@ntg.nl Tue Mar 04 10:07:47 2003 Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18q8OY-0005Co-00 for ; Tue, 04 Mar 2003 10:07:30 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id D669E10B24; Tue, 4 Mar 2003 10:07:56 +0100 (MET) Original-Received: from mail.solcon.nl (mail.solcon.nl [212.45.33.11]) by ref.ntg.nl (Postfix) with ESMTP id 5FDCD10B18 for ; Tue, 4 Mar 2003 10:04:45 +0100 (MET) Original-Received: from server-1.pragma-net.nl (wc-58016.solcon.nl [212.45.58.16]) by mail.solcon.nl (8.12.5/pre1.0-MySQL/8.12.5) with ESMTP id h2494fAc011088 for ; Tue, 4 Mar 2003 10:04:42 +0100 Original-Received: from LAPTOP-3.wxs.nl (laptop-3 [10.100.1.191]) by server-1.pragma-net.nl (8.12.3/8.12.2) with ESMTP id h2494gaa007920 for ; Tue, 4 Mar 2003 10:04:42 +0100 X-Sender: hagen-mail@server-1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Original-To: ntg-context@ntg.nl In-Reply-To: <20030228152256.02da080c.morawski@gmx.net> X-RAVMilter-Version: 8.4.1(snapshot 20020919) (mail.solcon.nl) Errors-To: ntg-context-admin@ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:11165 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:11165 At 03:22 PM 2/28/2003 +0100, you wrote: >\definecolor[sa][r=1,t=0.7,a=1] >\definecolor[ea][g=1,t=0.5,a=1] > >\definecolor[s][r=1] >\definecolor[e][g=1] > >\startMPgraphic > path p ; p := unitsquare xscaled 5cm yscaled 5cm ; > fill p shifted (4cm,4cm) withcolor .7white ; > fill p shifted (-3cm,-3cm) withcolor .8white ; > > linear_shade(p,0,\MPcolor{s},\MPcolor{e}); >\stopMPgraphic > >\loadcurrentMPgraphic\placeMPgraphic i'll have a look at it; i'm not even sure if transparent shades are possible, since the shading vectors need color vectors (implementing shading and transparency took me quite some time to figure out from the fuzzy specs] (btw: \startMPcode \stopMPcode or \startMPpage \stopMPpage saves you some typing) Hans ------------------------------------------------------------------------- Hans Hagen | PRAGMA ADE | pragma@wxs.nl Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com ------------------------------------------------------------------------- information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf -------------------------------------------------------------------------