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.

currentpicture := currentpicture slanted .5 ;<br />

<strong>MetaFun</strong><br />

currentpicture := currentpicture slanted -.5 ;<br />

<strong>MetaFun</strong><br />

currentpicture := currentpicture zscaled (.75,.25) ;<br />

<strong>MetaFun</strong><br />

currentpicture := currentpicture<br />

reflectedabout(llcorner currentpicture,urcorner currentpicture) ;<br />

<strong>MetaFun</strong><br />

A path has a certain direction. When the turningnumber of a path is larger than zero, it runs<br />

in clockwise direction. The METAPOST primitive reverse changes the direction, while the macro<br />

counterclockwise can be used to get a path running in a well defined direction.<br />

drawoptions(withpen pencircle scaled 2pt withcolor .625red) ;<br />

path p ; p := fullcircle scaled 1cm ;<br />

drawarrow p ;<br />

drawarrow reverse p shifted (2cm,0) ;<br />

drawarrow counterclockwise p shifted (4cm,0) ;<br />

drawarrow counterclockwise reverse p shifted (6cm,0) ;<br />

drawarrow reverse counterclockwise p shifted (8cm,0) ;<br />

2.8 Only this far<br />

When you take a close look at the definitions of the Computer Modern Roman fonts, defined in<br />

the METAFONT book, you will notice a high level of abstraction. Instead of hard coded points you<br />

will find points defined in terms of ‘being the same as this point' or ‘touching that point'. In this<br />

section we will spend some time on this touchy aspect.<br />

Only this far A few more details<br />

93

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

Saved successfully!

Ooh no, something went wrong!