On 18-5-2011 8:30, Marco wrote:

% 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};

don't ask how, but the upcoming beta can handle it

\starttext

\definecolor [red-t]  [r=1,t=.6,a=1]
\definecolor [blue-t] [b=1,t=.4,a=1]

\startMPpage
path p ; p := fullsquare scaled 6cm ;

fill p ;

path p ; p := fullsquare scaled 6cm shifted (-4cm,-4cm);

fill p
    withshading("linear", llcorner p, urcorner p)
    withcolor \MPcolor{red} shadedinto \MPcolor{blue} ;

path p ; p := fullsquare scaled 6cm shifted (4cm,4cm) ;

fill p
    withshading("linear", llcorner p, urcorner p)
    withcolor \MPcolor{red} shadedinto \MPcolor{blue}
    withtransparency(1,.5) ;

path p ; p := fullsquare scaled 6cm shifted (-4cm,4cm) ;

fill p
    withshading("linear", llcorner p, urcorner p)
    withcolor \MPcolor{red} shadedinto \MPcolor{blue-t};

path p ; p := fullsquare scaled 6cm shifted (4cm,-4cm) ;

fill p
    withshading("linear", llcorner p, urcorner p)
    withcolor \MPcolor{blue-t} shadedinto \MPcolor{red};
  % withfromshadecolor \MPcolor{blue-t} withtoshadecolor \MPcolor{red};
\stopMPpage

\stoptext

-----------------------------------------------------------------
                                          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
___________________________________________________________________________________

Reply via email to