InsectNation

do your funny little dance


Home > Articles > Return of the cocked-up cycloid

Return of the cocked-up cycloid

A couple of years ago, I taught myself some rudimentary PostScript programming from Bill Casselman’s brilliant Mathematical Illustrations book. PostScript is excellent fun, and I thoroughly recommend it to all weirdos with an interest in stack-based graphics programming.

Recently, while fiddling with MetaPost (another perverse but entertaining graphics language), I remembered using Python and PostScript to create a nice Bezier curve approximation to a cycloid. This was before I discovered PyX, which does that sort of thing for you, and it’s a very illustrative exercise - but my not-quite-right first attempt actually produced a fascinating and very pretty result:

My cocked-up cycloid

For those who’d like to look at the PostScript source or who just like zooming in arbitrarily far into vector images, here’s the PostScript version.

While the code that produced it is long gone, I’m happy to still have the result. Only mathematical illustrations can produce such satisfying errors… and just imagine what someone talented and artistic could do with the right mathematical/programming knowledge.

Posted by Andy Buckley on Wednesday, June 06, 2007