* linear_shade not working any more
@ 2006-07-18 21:57 Mojca Miklavec
2006-07-18 22:11 ` Aditya Mahajan
0 siblings, 1 reply; 3+ messages in thread
From: Mojca Miklavec @ 2006-07-18 21:57 UTC (permalink / raw)
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?
Thank you,
Mojca
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: linear_shade not working any more
2006-07-18 21:57 linear_shade not working any more Mojca Miklavec
@ 2006-07-18 22:11 ` Aditya Mahajan
2006-07-18 23:47 ` Mojca Miklavec
0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2006-07-18 22:11 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: linear_shade not working any more
2006-07-18 22:11 ` Aditya Mahajan
@ 2006-07-18 23:47 ` Mojca Miklavec
0 siblings, 0 replies; 3+ messages in thread
From: Mojca Miklavec @ 2006-07-18 23:47 UTC (permalink / raw)
On 7/19/06, Aditya Mahajan wrote:
> 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
> Your example works correctly here (Win XP, Context 2006.07.14)
Sorry for the false alarm. I deleted and reinstalled everything and
now it works again.
(It seems that I've been messing up again.)
Mojca
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-07-18 23:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-18 21:57 linear_shade not working any more Mojca Miklavec
2006-07-18 22:11 ` Aditya Mahajan
2006-07-18 23:47 ` Mojca Miklavec
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).