29.11.2012 Views

MetaFun - Pragma ADE

MetaFun - Pragma ADE

MetaFun - Pragma ADE

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

202<br />

fill fullcircle scaled 2cm withcolor yellow ;<br />

fill fullcircle scaled 2cm shifted (3cm,0) withcolor red ;<br />

The yellow and red color do not match the main document colors, but this is no problem: we can<br />

remap them, without spoiling the original definition.<br />

fill fullcircle scaled 2cm withcolor yellow ;<br />

fill fullcircle scaled 2cm shifted (3cm,0) withcolor red ;<br />

remapcolor(yellow,.625yellow) ;<br />

remapcolor(red ,.625red) ;<br />

recolor currentpicture ;<br />

resetcolormap ;<br />

We can combine the inclusion technique with remapping colors. This time using an artist impression<br />

of one of Hasselts Canals (gracht in Dutch).<br />

loadfigure "gracht.mp" number 1 scaled .5 ;<br />

If you think that the sky is too bright in this picture, and given that you also know which color is<br />

used, you can fool the reader by remapping a few colors.<br />

loadfigure "gracht.mp" number 1 scaled .5 ;<br />

color skycolor ; skycolor := (0.8,0.90,1.0) ;<br />

color watercolor ; watercolor := (0.9,0.95,1.0) ;<br />

remapcolor(skycolor ,.8skycolor ) ;<br />

remapcolor(watercolor,.8watercolor) ;<br />

recolor currentpicture ;<br />

resetcolormap ;<br />

Special effects Changing colors

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!