Skip to content

Instantly share code, notes, and snippets.

@loopspace
Created September 24, 2016 19:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loopspace/d37d8d31e9f5ebb38bb0854adf025575 to your computer and use it in GitHub Desktop.
Save loopspace/d37d8d31e9f5ebb38bb0854adf025575 to your computer and use it in GitHub Desktop.
Knot for TJ Hitchman's course
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{knots,hobby}
\begin{document}
\begin{tikzpicture}[use Hobby shortcut]
\begin{knot}[
consider self intersections,
% draft mode=crossings,
ignore endpoint intersections=false,
every strand/.style={draw,ultra thick},
clip width=4,
flip crossing/.list={3,5,7}
]
\strand ([closed]4,-.25) .. (90:3.5) .. (135:4.5) .. (157.5:3.5) .. (180:4.5) .. (202.5:3.5) .. (225:4.5) .. (-90:3.5) .. (4,.25) .. (-45:4.5) .. (-90:4.5) .. (225:3.5) .. (202.5:4.5) .. (180:3.5) .. (157.5:4.5) .. (135:3.5) .. (90:4.5) .. (45:4.5);
\end{knot}
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment