Ian Jauslin
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'figs/square_packing.fig/square_packing.tikz.tex')
-rw-r--r--figs/square_packing.fig/square_packing.tikz.tex20
1 files changed, 20 insertions, 0 deletions
diff --git a/figs/square_packing.fig/square_packing.tikz.tex b/figs/square_packing.fig/square_packing.tikz.tex
new file mode 100644
index 0000000..297e72e
--- /dev/null
+++ b/figs/square_packing.fig/square_packing.tikz.tex
@@ -0,0 +1,20 @@
+\documentclass{standalone}
+
+\usepackage{tikz}
+\usepackage{shapes}
+
+\begin{document}
+\begin{tikzpicture}
+\foreach \i in {0,...,3}{
+ \ttsquare{teal}{(2*\i,0)}
+ \ttsquare{teal}{(2*\i,2)}
+ \ttsquare{teal}{(2*\i,4)}
+}
+\grid86{[color=red, dashed](-1,-1)}
+\foreach \i in {0,...,3}{
+ \ttsquareempty{(2*\i,0)}
+ \ttsquareempty{(2*\i,2)}
+ \ttsquareempty{(2*\i,4)}
+}
+\end{tikzpicture}
+\end{document}