On Tue, 18 Jul 2006, Mojca Miklavec wrote:

> Hello,
>
> It seems to me that the following code worked in some beta 2 weeks ago:
>
> \setupcolors
>       [state=start]
> \definecolor
>       [BgColor1]
>       [white]
> \definecolor
>       [BgColor2]
>       [r=0.7,g=0.7,b=1]
>
> \starttext
> \startMPcode
>       path p; p := unitsquare scaled 3cm;
>       linear_shade(p,0,\MPcolor{BgColor2},\MPcolor{BgColor1});
> \stopMPcode
> \stoptext
>
> But with 2006.07.14 I get:
>
> This is MetaPost, Version 0.901 (Web2c 7.5.3)
> (shading-mpgraph.mp
>>> (1,0,0)
> ! Isolated expression.
> <to be read again>
>                   ;
> scaledgray->begingroup.red;
>                           endgroup
> l.286 ...(scaledrgb(0.7,0.7,1,1)),(scaledgray(1,1)
>                                                  ));
> ?
>
> Any suggestions about what could go wrong?

Your example works correctly here (Win XP, Context 2006.07.14)

Aditya
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to