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.

Watch how we can pass a point (point 5 of p) as well as a fraction (.4). The following graphic<br />

demonstrates a few more alternatives.<br />

The arrows are drawn using the previously defined macros. Watch the positive and negative offsets<br />

in call to pointarrow.<br />

drawarrow leftarrow (p,point 1 of p,2cm) withcolor red ;<br />

drawarrow centerarrow (p,point 2 of p,2cm) withcolor blue ;<br />

drawarrow rightarrow (p,point 3 of p,2cm) withcolor green ;<br />

drawarrow pointarrow (p,.60,4cm,+.5cm) withcolor yellow ;<br />

drawarrow pointarrow (p,.75,3cm,-.5cm) withcolor cyan ;<br />

drawarrow centerarrow (p,.90,3cm) withcolor magenta ;<br />

1.20 Current picture<br />

When you draw paths, texts and/or pictures they are added to the so called current picture. You<br />

can manipulate this current picture as is demonstrated in this manual. Let's show a few current<br />

picture related tricks.<br />

draw fullcircle scaled 1cm withpen pencircle scaled 1mm withcolor .625red ;<br />

We can manipulate the picture as a whole:<br />

draw fullcircle scaled 1cm withpen pencircle scaled 1mm withcolor .625red ;<br />

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

Current picture Welcome to MetaPost<br />

63

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

Saved successfully!

Ooh no, something went wrong!