Skip to content

Instantly share code, notes, and snippets.

@TorbjornT
Created October 5, 2016 20:19
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save TorbjornT/66cbd722d24af191b48f34657e66b4ef to your computer and use it in GitHub Desktop.
\documentclass[border=9,tikz]{standalone}
\usetikzlibrary{decorations.pathmorphing}
\begin{document}
\begin{tikzpicture}
\draw[decoration={snake,pre length=2mm,post length=2mm,segment length=4mm},thick,red,decorate](0,0)--(2,0);
\draw[decoration={snake,segment length=4mm},decorate,very thin,blue] (-0.2,0)--(2,0);
\draw [very thin,blue] (2mm,-5pt) -- (2mm,5pt) node[above,align=center,font=\tiny]{red\\decoration\\start};
\end{tikzpicture}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment