\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 | [EMAIL PROTECTED]
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
-------------------------------------------------------------------------_______________________________________________ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
