18dgj/figs/sampling_cube.fig/sampling_cube.tikz.tex

19 lines
493 B
TeX

\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\fill[color=cyan](0,0)--++(2,0)--++(1,0.8)--++(0,2)--++(-2,0)--++(-1,-0.8);
\fill[color=red](0,0)--++(0,1)--++(1,0)--++(0,-1);
\draw(0,0)--++(2,0)--++(0,2)--++(-2,0)--cycle;
\draw(2,0)--++(1,0.8)--++(0,2)--++(-2,0)--++(-1,-0.8);
\draw(2,2)--++(1,0.8);
\draw(1,0)--++(0,2)--++(1,0.8);
\draw(0,1)--++(2,0)--++(1,0.8);
\draw(0,2)++(0.5,0.4)--++(2,0)--++(0,-2);
\end{tikzpicture}
\end{document}