Tux with bricks

This is from my tweet here, an example illustrating the tikzbricks package that I featured in the fun section of my new TikZ book. (It shall be released in July, you can follow me on Twitter for updates.)

Tux, the penguin, built with bricks

\documentclass[tikz,svgnames,border=20pt]{standalone}
\usepackage{tikzbricks}
% Use this for a different viewing angle
%\tdplotsetmaincoords{120}{-60}\begin{document}
\begin{document}
\begin{wall}
  \addtocounter{brickx}{6}
  \wallbrick[color=OrangeRed]{3}{2}
  \addtocounter{brickx}{8}
  \wallbrick[color= OrangeRed]{3}{2}
  \newrow
%
  \addtocounter{brickx}{4}
  \wallbrick[color=OrangeRed]{2}{2}
  \wallbrick[color=orange]{2}{2}
  \wallbrick[color=OrangeRed]{1}{2}
  \stepcounter{brickx}
  \wallbrick[color=black]{6}{2}
  \stepcounter{brickx}
  \wallbrick[color=OrangeRed]{1}{2}
  \wallbrick[color=orange]{2}{2}
  \wallbrick[color=OrangeRed]{2}{2}
  \newrow
%
  \addtocounter{brickx}{2}
  \wallbrick[color=OrangeRed]{2}{2}
  \wallbrick[color=orange]{5}{2}
  \wallbrick[color=black]{8}{2}
  \wallbrick[color=orange]{5}{2}
  \wallbrick[color=OrangeRed]{2}{2}
  \newrow
%
  \addtocounter{brickx}{1}
  \wallbrick[color=OrangeRed]{1}{2}
  \wallbrick[color=orange]{7}{2}
  \wallbrick[color=black]{8}{2}
  \wallbrick[color=orange]{7}{2}
  \wallbrick[color=OrangeRed]{1}{2}
  \newrow
%
  \wallbrick[color=OrangeRed]{1}{2}
  \wallbrick[color=orange]{7}{2}
  \wallbrick[color=black]{3}{2}
  \wallbrick[color=lightgray]{1}{2}
  \wallbrick[color=white]{3}{2}
  \wallbrick[color=black]{3}{2}
  \wallbrick[color=orange]{7}{2}
  \wallbrick[color=OrangeRed]{1}{2}
  \newrow
%
  \wallbrick[color=OrangeRed]{1}{2}
  \wallbrick[color=orange]{7}{2}
  \wallbrick[color=black]{3}{2}
  \wallbrick[color=lightgray]{1}{2}
  \wallbrick[color=white]{3}{2}
  \wallbrick[color=black]{3}{2}
  \wallbrick[color=orange]{7}{2}
  \wallbrick[color=OrangeRed]{1}{2}
  \newrow
%
  \addtocounter{brickx}{1}
  \wallbrick[color=OrangeRed]{1}{2}
  \wallbrick[color=orange]{6}{2}
  \wallbrick[color=black]{2}{2}
  \wallbrick[color=lightgray]{2}{2}
  \wallbrick[color=white]{3}{2}
  \wallbrick[color=black]{3}{2}
  \wallbrick[color=orange]{6}{2}
  \wallbrick[color=OrangeRed]{1}{2}
  \newrow
%
  \addtocounter{brickx}{1}
  \wallbrick[color=OrangeRed]{1}{2}
  \wallbrick[color=orange]{6}{2}
  \wallbrick[color=lightgray]{3}{2}
  \wallbrick[color=white]{5}{2}
  \wallbrick[color=black]{2}{2}
  \wallbrick[color=orange]{6}{2}
  \wallbrick[color=OrangeRed]{1}{2}
  \newrow
%
  \addtocounter{brickx}{2}
  \wallbrick[color=OrangeRed]{1}{2}
  \wallbrick[color=orange]{3}{2}
  \wallbrick[color=OrangeRed]{1}{2}
  \wallbrick[color=lightgray]{3}{2}
  \wallbrick[color=white]{6}{2}
  \wallbrick[color=black]{3}{2}
  \wallbrick[color=orange]{4}{2}
  \wallbrick[color=OrangeRed]{1}{2}
  \newrow
%
%  \addtocounter{brickx}{2}
%  \wallbrick[color=OrangeRed]{1}{2}
%  \wallbrick[color=orange]{3}{2}
%  \wallbrick[color=OrangeRed]{1}{2}
%  \wallbrick[color=lightgray]{3}{2}
%  \wallbrick[color=white]{6}{2}
%  \wallbrick[color=black]{3}{2}
%  \wallbrick[color=orange]{4}{2}
%  \wallbrick[color=OrangeRed]{1}{2}
%  \newrow
%
  \addtocounter{brickx}{2}
  \wallbrick[color=OrangeRed]{4}{2}
  \wallbrick[color=black]{1}{2}
  \wallbrick[color=lightgray]{3}{2}
  \wallbrick[color=white]{7}{2}
  \wallbrick[color=black]{3}{2}
  \wallbrick[color= OrangeRed]{4}{2}
  \newrow
%
  \addtocounter{brickx}{3}
  \wallbrick[color=black]{4}{2}
  \wallbrick[color=lightgray]{3}{2}
  \wallbrick[color=white]{8}{2}
  \wallbrick[color=black]{4}{2}
  \wallbrick[color=darkgray]{1}{2}
  \newrow
%
  \addtocounter{brickx}{3}
  \wallbrick[color=black]{4}{2}
  \wallbrick[color=lightgray]{3}{2}
  \wallbrick[color=white]{9}{2}
  \wallbrick[color=darkgray]{1}{2}
  \wallbrick[color=black]{2}{2}
  \wallbrick[color=darkgray]{1}{2}
  \newrow
%
  \addtocounter{brickx}{4}
  \wallbrick[color=black]{4}{2}
  \wallbrick[color=lightgray]{2}{2}
  \wallbrick[color=white]{10}{2}
  \wallbrick[color=black]{1}{2}
  \wallbrick[color=darkgray]{1}{2}
  \newrow
%
  \addtocounter{brickx}{4}
  \wallbrick[color=black]{4}{2}
  \wallbrick[color=lightgray]{3}{2}
  \wallbrick[color=white]{8}{2}
  \wallbrick[color=black]{2}{2}
  \wallbrick[color=darkgray]{1}{2}
  \newrow
%
  \addtocounter{brickx}{4}
  \wallbrick[color=black]{4}{2}
  \wallbrick[color=lightgray]{3}{2}
  \wallbrick[color=white]{8}{2}
  \wallbrick[color=black]{2}{2}
  \wallbrick[color=darkgray]{1}{2}
  \newrow
%
  \addtocounter{brickx}{5}
  \wallbrick[color=black]{3}{2}
  \wallbrick[color=lightgray]{4}{2}
  \wallbrick[color=white]{7}{2}
  \wallbrick[color=black]{1}{2}
  \wallbrick[color=darkgray]{1}{2}
  \newrow
%
  \addtocounter{brickx}{5}
  \wallbrick[color=black]{4}{2}
  \wallbrick[color=lightgray]{4}{2}
  \wallbrick[color=white]{5}{2}
  \wallbrick[color=black]{2}{2}
  \wallbrick[color=darkgray]{1}{2}
  \newrow
%
  \addtocounter{brickx}{6}
  \wallbrick[color=black]{3}{2}
  \wallbrick[color=lightgray]{4}{2}
  \wallbrick[color=white]{4}{2}
  \wallbrick[color=black]{2}{2}
  \wallbrick[color=darkgray]{1}{2}
  \newrow
%
  \addtocounter{brickx}{6}
  \wallbrick[color=black]{4}{2}
  \wallbrick[color=lightgray]{3}{2}
  \wallbrick[color=white]{4}{2}
  \wallbrick[color=black]{2}{2}
  \wallbrick[color=darkgray]{1}{2}
  \newrow
%
  \addtocounter{brickx}{6}
  \wallbrick[color=black]{4}{2}
  \wallbrick[color=lightgray]{1}{2}
  \wallbrick[color=orange]{4}{2}
  \wallbrick[color=white]{2}{2}
  \wallbrick[color=black]{2}{2}
  \wallbrick[color=darkgray]{1}{2}
  \newrow
%
  \addtocounter{brickx}{7}
  \wallbrick[color=black]{3}{2}
  \wallbrick[color=orange]{1}{2}
  \wallbrick[color=black]{4}{2}
  \wallbrick[color=orange]{1}{2}
  \wallbrick[color=white]{1}{2}
  \wallbrick[color=black]{1}{2}
  \wallbrick[color=darkgray]{1}{2}
  \newrow
%
  \addtocounter{brickx}{7}
  \wallbrick[color=black]{2}{2}
  \wallbrick[color=orange]{8}{2}
  \wallbrick[color=black]{1}{2}
  \wallbrick[color=darkgray]{1}{2}
  \newrow
%
  \addtocounter{brickx}{7}
  \wallbrick[color=black]{4}{2}
  \wallbrick[color=orange]{4}{2}
  \wallbrick[color=black]{3}{2}
  \wallbrick[color=darkgray]{1}{2}
  \newrow
%
  \addtocounter{brickx}{7}
  \wallbrick[color=black]{11}{2}
  \wallbrick[color=darkgray]{1}{2}
  \newrow
%
  \addtocounter{brickx}{7}
  \wallbrick[color=black]{2}{2}
  \wallbrick[color=white]{1}{2}
  \wallbrick[color=black]{1}{2}
  \wallbrick[color=white]{1}{2}
  \wallbrick[color=black]{2}{2}
  \wallbrick[color=white]{1}{2}
  \wallbrick[color=black]{1}{2}
  \wallbrick[color=white]{1}{2}
  \wallbrick[color=black]{1}{2}
  \wallbrick[color=darkgray]{1}{2}
  \newrow
%
  \addtocounter{brickx}{7}
  \wallbrick[color=black]{2}{2}
  \wallbrick[color=white]{1}{2}
  \wallbrick[color=black]{1}{2}
  \wallbrick[color=white]{1}{2}
  \wallbrick[color=black]{2}{2}
  \wallbrick[color=white]{1}{2}
  \wallbrick[color=black]{1}{2}
  \wallbrick[color=white]{1}{2}
  \wallbrick[color=black]{1}{2}
  \wallbrick[color=darkgray]{1}{2}
  \newrow
%
  \addtocounter{brickx}{7}
  \wallbrick[color=black]{3}{2}
  \wallbrick[color=white]{1}{2}
  \wallbrick[color=black]{4}{2}
  \wallbrick[color=white]{1}{2}
  \wallbrick[color=black]{2}{2}
  \wallbrick[color=darkgray]{1}{2}
  \newrow
%
  \addtocounter{brickx}{8}
  \wallbrick[color=black]{10}{2}
  \newrow
%
  \addtocounter{brickx}{8}
  \wallbrick[color=darkgray]{1}{2}
  \wallbrick[color=black]{8}{2}
  \wallbrick[color=darkgray]{1}{2}
  \newrow
%
  \addtocounter{brickx}{8}
  \wallbrick[color=darkgray]{1}{2}
  \wallbrick[color=black]{7}{2}
  \wallbrick[color=darkgray]{2}{2}
  \newrow
%
  \addtocounter{brickx}{9}
  \wallbrick[color=darkgray]{3}{2}
  \wallbrick[color=black]{2}{2}
  \wallbrick[color=darkgray]{3}{2}
  \newrow
%
  \addtocounter{brickx}{11}
  \wallbrick[color=darkgray]{4}{2}
\end{wall}
\end{document}

Leave a Reply

Your email address will not be published.