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.

The asymetrical tensions are less prominent. We use the following values:<br />

sample (z1 .. tension .75 and 10 .. z2 .. z3, .625red) ;<br />

sample (z1 .. tension 10 and .75 .. z2 .. z3, .625yellow) ;<br />

sample (z1 .. z2 .. z3, .625white) ;<br />

What happens when you use the METAPOST maximum value of infinity instead of 10? Playing<br />

with this kind of graphic can be fun, especially when we apply a few tricks.<br />

def sample (expr p, c) =<br />

draw p withpen pencircle scaled 2.5mm withcolor white ;<br />

draw p withpen pencircle scaled 2.0mm withcolor c ;<br />

enddef;<br />

u := 1cm ; z1 = (0,0) ; z2 = (2u,4u) ; z3 = (4u,0) ;<br />

for i=0 step .05 until 1 :<br />

Inflection, tension and curl A few more details<br />

87

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

Saved successfully!

Ooh no, something went wrong!