Celtic Knot Thingy (CKT) is a program for drawing Celtic knotwork ornaments like the following:
http://isotropic.org//celticknot/
It is written in Tcl/Tk and PostScript, and so is reasonably platform independent (it works under Windows and Linux, should work on Macs and other Unixes as well).
KPV: Check out Celtic Knot for a pure tcl/tk implementation of this code.