Skip to content

Instantly share code, notes, and snippets.

@TorbjornT
Created Oct 5, 2016
Embed
What would you like to do?
\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