Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (21 sloc) 1.04 KB
\documentclass[tikz,convert=false]{standalone}
\usetikzlibrary{paths.ortho,backgrounds}
\def\foreachfour{\foreach \pos in {0,.125,.25,.5,.75,.875,1}{node[pos=\pos] {\pos}}}
\def\foreachthree{\foreach \pos in {0,.1666,.3333,.5,.6667,.8333,1}{node[pos=\pos] {\pos}}}
\def\foreachzero{\foreach \pos in {-1,-.5,0,.5,1,1.5,2}{node[pos=\pos] {\pos}}}
\begin{document}
\foreach \Distance in {0,.2,.4,.5,.6,.8,1,1.2,1.4,1.5,1.6,1.8,2,1.8,1.6,1.5,1.4,1.2,1,.8,.6,.5,.4,.2,0}{
\begin{tikzpicture}[udlr/distance=\Distance cm, hvvh/distance=\Distance cm, show background grid]
\node[opacity=0] at (8,0) {.3333};
\draw (1,1) r-ud ++(3,4) \foreachfour;
\draw[blue] (5,1) r-rl ++(3,4) \foreachfour ++(2,2) node[opacity=0] {.75};
\scope[yshift=-5cm,hvvh/spacing=3]
\draw (1,1) r-du ++(3,4) \foreachthree;
\draw[blue] (5,1) r-lr ++(3,4) \foreachthree;
\endscope
\scope[yshift=-10cm,hvvh/spacing=0]
\draw (1,1) |-| ++(3,4) \foreachzero;
\draw[blue] (5,1) -|- ++(3,4) \foreachzero;
\endscope
\end{tikzpicture}}
\end{document}
You can’t perform that action at this time.