29.11.2012 Views

MetaFun - Pragma ADE

MetaFun - Pragma ADE

MetaFun - Pragma ADE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

16<br />

0<br />

4<br />

1<br />

3<br />

"z0---z1---z2---z3---cycle"<br />

Welcome to MetaPost Constructing paths<br />

2<br />

If you compare this graphic with the one using -- the result is the same, but there is a clear difference<br />

in control points. As a result, combining .. with -- or --- makes a big difference. Here we<br />

get a non--smooth connection between the curves and the straight line.<br />

0<br />

4<br />

1<br />

3<br />

2<br />

"z0..z1..z2--z3..cycle"<br />

As you can see in the next graphic, when we use ---, we get a smooth connection between the<br />

straight line and the rest of the curve.<br />

0<br />

4<br />

1<br />

3<br />

2<br />

"z0..z1..z2---z3..cycle"<br />

So far, we have joined the four points as one path. Alternatively, we can constrict subpaths and<br />

connect them using the ampersand symbol, &.<br />

0<br />

4<br />

1<br />

3<br />

2<br />

"z0..z1..z2 & z2..z3..z0 & cycle"<br />

So far we have created a closed path. Closing is done by cycle. The following path may look<br />

closed but is in fact open.

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

Saved successfully!

Ooh no, something went wrong!