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.

The clipping path is applied by saying:<br />

clip currentpicture to r ;<br />

The result is quite acceptable:<br />

But, if you watch closely to how this graphic extends into to left margin of this document, you will<br />

see that the bounding box is not yet right.<br />

setbounds currentpicture to r ;<br />

We use the same path r to correct the bounding box.<br />

There are a few subtle points involved, like setting the linejoin variable. If we had not set it to<br />

mitered, we would have got round corners. We don't set the linecap, because a flat cap would<br />

not extend far enough into the touching curve and would have left a small hole. The next example<br />

shows what happens if we set these variables to the wrong values:<br />

In fact we misuse the fact that both curves overlay each other.<br />

Simple Logos A few applications<br />

307

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

Saved successfully!

Ooh no, something went wrong!