[metapost] Problem with simulated gradient
Taco Hoekwater
taco at elvenkind.com
Thu Mar 19 18:27:13 CET 2009
It helps if you replace this:
> for i=0 step s until 200:
> fill eme shifted (-6u+i,0) withcmykcolor
> (i/100)[(1,0.60,.60,0),(1,1,1,1)];
> endfor;
by:
path sq;
sq := (0,0)--(u,0)--(u,alt)--(0,alt)--cycle;
for i=0 step s until 200:
fill sq shifted (-6u+10i,0) withcmykcolor
(i/100)[(1,0.60,.60,0),(1,1,1,1)];
endfor;
clip currentpicture to eme;
This fills 200 shifted copies of a small rectangle, and then
uses the actual logo as a clip mask.
Best wishes,
Taco
More information about the metapost
mailing list