On 18-5-2011 8:30, Marco wrote:
% The entire square is transparent,
% not just the shading part
path p; p:=fullsquare scaled 5cm shifted (5cm, 0cm);
fill p
withshading("linear", llcorner p, urcorner p)
withcolor \MPcolor{red} shadedinto \MPcolor{blue-t};
indeed, as transparency is independent of shading
% Error
% path p; p:=fullsquare scaled 5cm shifted (10cm, 0cm);
% fill p
% withshading("linear", llcorner p, urcorner p)
% withcolor \MPcolor{red-t} shadedinto \MPcolor{blue};
for the moment use withfromshadecolor ...
(i need to discuss the other variant with taco as it involves the mp
parser)
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________