Tag: MetaPost
-
I love binary trees
A few years ago I was very proud of myself for managing to translate the original Pascal of the Reingold-Tilford algorithm into C/C++ and every since then I have had a fascination for drawing binary trees. The one drawn here was actually done “by hand” in Metapost – I realised only as I finished…
Adrian McMenamin
-
This took me all day, so you had better like it
Seriously, though, are you confused by the fact I have done the computing nodes in two different colours? Should they all be the one colour (the router nodes in the tree example should be a different colour anyway)?
-
Why I love Metapost
I am writing some stuff about Conway’s Game of Life (and Scratch) – thinking about whether it is possible to explain to adults the basics of programming a computer using the Scratch Life script an an example: Life is more suitable for adults than say the Code Club fish chasing game and anyway it gives…
Adrian McMenamin
-
No progress on PostMeta – yet
My project to write a GUI for MetaPost has not made much headway, but that’s because it’s a bit more tricky than I thought – and I have been out of the country too. libmplib – the MetaPost library is not yet fully supported as a dynamic library (though there are ways round that), meaning…
-
Renamed my project Postmeta
As Steven Kelly pointed out to me there was a trade marked product called MetaEdit+ I renamed my project to build a editor/viewer of MetaPost files Postmeta: I don’t think that is taken. I also worked out why I could not see the mplib.h header for the MetaPost library – or indeed many of the…
-
New coding project – metaedit – started
I have started writing a MetaPost editor – metaeditpostmeta – which is on Github. I am not sure how much time and effort I will be able to devote to it, but hopefully I will produce something somebody (even if it is just me) can use. Yesterday I discovered someone had written a DSL with…
Adrian McMenamin
-
A GUI for Metapost?
I have sort-of abandoned my Apple Air Book for serious work this last week – going back to a 2008/9 Toshiba laptop (another Morgan Computers purchase) running Linux. The Apple is a lovely device to travel with and is beautiful, if extremely expensive, device with which to browse the web, but a decade of conditioning…
Adrian McMenamin
-
How to use textpath with Metapost
It took me more than a few hours to get this working and as the manual is not at all fully clear on what you need to do (or rather, it assumes more knowledge of LaTeX than I had), I thought it would be useful to set this out. Textpath allows one to draw text…
-
The evolution of the astroid pattern on the spirograph
Here is a MetaPost generated picture of the first 14% or so movements of an inner circle one quarter of the size of the outer circle (as might be found on a spirograph). This eventually generates the astroid pattern. The red arrows follow the movement of a fixed point on the smaller circle – as…
-
The maths of the spirograph
I wrote this on Saturday >> I have been reading some more of Wheels, Life and Other Mathematical Amusements: in fact I just read the rest of the first chapter on wheels. And so now I know about the maths of the spirograph. << Since then I have been fitfully working out how to…