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.

4<br />

3<br />

5<br />

2<br />

6<br />

1<br />

0<br />

7<br />

8<br />

You can pass options directly, like you do with draw and fill. Those options override the defaults.<br />

4<br />

3<br />

5<br />

Here we used the options:<br />

2<br />

6<br />

1<br />

0<br />

7<br />

path p ; p := fullcircle xscaled 6cm yscaled 3cm rotated 15 ;<br />

drawarrowpath p ;<br />

drawcontrollines p withcolor .625red ;<br />

drawpoints p withcolor .625yellow ;<br />

drawcontrolpoints p withcolor .625yellow ;<br />

drawpointlabels p withcolor .625yellow ;<br />

drawboundingbox p ;<br />

draworigin withcolor .625red ;<br />

8<br />

Sometimes it makes sense to draw a simple coordinate system, and for that purpose we have three<br />

more macros. They draw axis and tickmarks.<br />

drawticks unitsquare xscaled 4cm yscaled 3cm shifted (-1cm,-1cm) ;<br />

The system drawn is based on the bounding box specification of the path passed to the macro. You<br />

can also draw one axis, using drawxticks or drawyticks. Here we show the previous command.<br />

Libraries Debugging<br />

257

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

Saved successfully!

Ooh no, something went wrong!