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.

After these examples your are probably sick of seeing this picture in color, so let's turn the colors<br />

into a weigthed grayscales (in a way similar to the way black and white television treated color).<br />

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

addto currentpicture also<br />

grayed currentpicture<br />

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

8.6 Outline fonts<br />

Outline fonts don't belong to METAPOST's repertoire of features. Nevertheless we can simulate this<br />

in a reasonable way. We will not discuss all details here, because most details are covered in the<br />

MAKEMPY manual.<br />

The macro responsible for outline fonts is graphictext. The first argument should be a string.<br />

This string is processed by TEX. Additionally you can provide transformation directives and color<br />

specifications. The next example demonstrates this.<br />

graphictext "\bf Fun" scaled 4 zscaled (1,1.5)<br />

withdrawcolor blue<br />

withfillcolor .5white<br />

withpen pencircle scaled 5pt<br />

Once the text is typeset by TEX, it is converted to POSTSCRIPT and converted into METAPOST by the<br />

PSTOEDIT program. The resulting graphic is imported, analyzed, and processed conforming the<br />

specifications of graphictext.<br />

Outline fonts Special effects<br />

205

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

Saved successfully!

Ooh no, something went wrong!