Interactive demo

   
   
A Turk's head knot

No effort has been made to avoid “clashes”. If you see steps where the lines cross, try reducing the line width.