
% arguments:  width, height, color
\newcommand{\cube}[3]{		
\begin{tikzpicture}				
			\draw[draw=none,fill=#3,opacity=0.2] (0.5,0.25) -- ++(0,#2) -- ++(#1,0) --++(0,-#2) -- ++(-#1,0) -- cycle;		
			\draw[fill=#3,opacity=0.2] (0,#2) --++(0.5,0.25) -- ++(#1,0) -- ++(-0.5,-0.25) -- cycle;
			\draw[fill=#3,opacity=0.2] (#1,#2) -- ++(0.5,0.25) -- ++(0,-#2) --++(-0.5,-0.25) -- cycle;
			\draw[fill=#3,opacity=0.2] (0,0) --++(0.5,0.25) -- ++(#1,0) -- ++(-0.5,-0.25) -- cycle;
			\draw[fill=#3,opacity=0.2] (0,#2) -- ++(0.5,0.25) -- ++(0,-#2) --++(-0.5,-0.25) -- cycle;
			\draw[draw=none,fill=#3,opacity=0.4] (0,0) -- ++(0,#2) -- ++(#1,0) --++(0,-#2) -- ++(-#1,0) -- cycle;						
\end{tikzpicture}
}