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.

Including another METAPOST graphic, refilling, redrawing, and recoloring are all relatively simple<br />

features that use no real tricks. Opposite to the next feature, which is implemented using the<br />

METAPOST special driver that comes with CONTEXT.<br />

METAPOST is not really meant for manipulating graphics, but the previous examples demonstrated<br />

that we have some control over individual colors. In the next series of examples we will treat the<br />

picture as a whole. First we invert the colors using inverted.<br />

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

addto currentpicture also<br />

inverted currentpicture<br />

shifted (bbwidth(currentpicture)+.5cm,0) ;<br />

This is a special case of uncolored. In the next example we explicitly specify the color.<br />

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

addto currentpicture also<br />

(currentpicture uncolored green)<br />

shifted (bbwidth(currentpicture)+.5cm,0) ;<br />

You can also multiply each color using softened. In the next sample, the colors have 80% of their<br />

value.<br />

Changing colors Special effects<br />

203

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

Saved successfully!

Ooh no, something went wrong!