Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- documentclass{beamer}
- setbeamertemplate{navigation symbols}{}
- usepackage{tikz}
- begin{document}
- begin{frame}[t]
- frametitle{cube}
- begin{minipage}{textwidth}
- newsavebox{hh}
- savebox{hh}{
- newcommand{Depth}{1}
- newcommand{Height}{1}
- newcommand{Width}{1}
- begin{tikzpicture}[scale=.9, transform shape]
- coordinate (O) at (0,0,0);
- coordinate (A) at (0,Width,0);
- coordinate (B) at (0,Width,Height);
- coordinate (C) at (0,0,Height);
- coordinate (D) at (Depth,0,0);
- coordinate (E) at (Depth,Width,0);
- coordinate (F) at (Depth,Width,Height);
- coordinate (G) at (Depth,0,Height);
- draw[blue,fill=yellow!80] (O) -- (C) -- (G) -- (D) -- cycle;
- draw[blue,fill=blue!30] (O) -- (A) -- (E) -- (D) -- cycle;
- draw[blue,fill=red!10] (O) -- (A) -- (B) -- (C) -- cycle;
- draw[blue,fill=red!20,opacity=0.8] (D) -- (E) -- (F) -- (G) -- cycle;
- draw[blue,fill=red!20,opacity=0.6] (C) -- (B) -- (F) -- (G) -- cycle;
- draw[blue,fill=red!20,opacity=0.8] (A) -- (B) -- (F) -- (E) -- cycle;
- end{tikzpicture}}
- foreach x in {0,...,3} {usebox{hh}}
- foreach x in {0,...,3} {usebox{hh}}
- foreach x in {0,...,3} {usebox{hh}}
- foreach x in {0,...,3} {usebox{hh}}
- end{minipage}
- end{frame}
- end{document}
Add Comment
Please, Sign In to add comment