tikz.dev / TikZpingus Manual

The TikZpingus package

Getting started

B Larger Examples

B.1 A chessboard

Let’s assume, that we want to have a board of penguins playing chess. For starters, we need the individual pieces.

Compiled output

The pawns
\tikz{\pingu[body=pingu@black]}
\tikz{\pingu[:back,xshift=3cm]}

Compiled output

The rooks
\tikz{\pingu[body=pingu@black,rook]}
\tikz{\pingu[:back,rook,rook hatch=false]}

For the knights we make use of the /pingu/horse behind extra, which itself is based on the /pingu/horse left//pingu/horse right wing item:

Compiled output

The knights
\tikz{\pingu[body=pingu@black,horse behind]}
\tikz{\pingu[:back,horse behind=pingu@black,on horse flip]}

Compiled output

The queens
\tikz{\pingu[body=pingu@black,princess crown=pingu@bronze]}
\tikz{\pingu[:back,princess crown=pingu@bronze]}

Compiled output

The kings
\tikz{\pingu[body=pingu@black,crown]}
\tikz{\pingu[:back,crown]}

Compiled output

The bishops
\tikz{\pingu[body=pingu@black,cross left=pingu@black,mitra]}
\tikz{\pingu[:back,cross left,mitra]}