1

I want to draw a cube in which all sides are filled with bricks. My code is based on the slanting of sides but unfortunately bricks remain straight and the figure won't be nice. Here is my code:

\documentclass{book}
\usepackage{tikz}
\usetikzlibrary{patterns}
\begin{document}
\begin{tikzpicture}
\draw [pattern=bricks,yslant=-.5](0,0) rectangle (3,3);
\draw [yslant=.5,pattern=bricks](3,-3) rectangle (6,0);
\draw [yslant=.5,xslant=-1,pattern=bricks] (3,0) rectangle (6,3);
\end{tikzpicture}
\end{document}

Is there a way to slant bricks pattern or I have to try another approach?

MEDVIS
  • 501

0 Answers0