tikz.dev / TikZpingus Manual

The TikZpingus package

Extras

A.3.14 The glasses

/pingu/glasses = ⟨color⟩(default: pingu@black)

Display glasses for the penguin:

Compiled output

\begin{tikzpicture}
\pingu[glasses=green]
\end{tikzpicture}

/pingu/glasses left fill = ⟨color⟩(default: !hide)

Requires glasses.

Sets the fill color of the left glass. The opacity is determined by /pingu/glasses left opacity.

Compiled output

\begin{tikzpicture}
\pingu[glasses,
glasses left fill=green]
\end{tikzpicture}

/pingu/glasses right fill = ⟨color⟩(default: !hide)

Requires glasses.

Sets the fill color of the right glass. The opacity is determined by /pingu/glasses right opacity.

Compiled output

\begin{tikzpicture}
\pingu[glasses,
glasses right fill=green]
\end{tikzpicture}

/pingu/glasses fill = ⟨color⟩(default: \@pingu@none)

Requires glasses.

Change the color of both glasses by calling /pingu/glasses left fill and /pingu/glasses right fill with the same value.

Compiled output

\begin{tikzpicture}
\pingu[glasses, glasses fill=green]
\end{tikzpicture}

/pingu/glasses left opacity = ⟨factor⟩(default: .825)

Requires glasses.

Compiled output

\begin{tikzpicture}
\pingu[glasses,
glasses left fill=green,
glasses left opacity=1]
\end{tikzpicture}

/pingu/glasses right opacity = ⟨factor⟩(default: .825)

Requires glasses.

Sets the fill opacity of the right glass:

Compiled output

\begin{tikzpicture}
\pingu[glasses,
glasses right fill=green,
glasses right opacity=1]
\end{tikzpicture}

/pingu/glasses opacity = ⟨factor⟩(default: .825)

Requires glasses.

Change the opacity of both glasses by calling /pingu/glasses left opacity and /pingu/glasses right opacity with the same value.

Compiled output

\begin{tikzpicture}
\pingu[glasses,
glasses fill=teal,
glasses opacity=1]
\end{tikzpicture}

/pingu/glasses line width = ⟨length⟩(default: 1.125\p@)

Requires glasses.

Compiled output

\begin{tikzpicture}
\pingu[glasses, glasses line width=1mm]
\end{tikzpicture}

/pingu/glasses bend left = ⟨angle⟩(default: 32.5)

Requires glasses.

Compiled output

\begin{tikzpicture}
\pingu[glasses, glasses bend left=45]
\end{tikzpicture}

/pingu/glasses bend right = ⟨angle⟩(default: 32.5)

Requires glasses.

Compiled output

\begin{tikzpicture}
\pingu[glasses, glasses bend right=45]
\end{tikzpicture}

/pingu/glasses bend = ⟨angle⟩(default: 32.5)

Requires glasses.

Sets /pingu/glasses bend left and /pingu/glasses bend right with the same value.

Compiled output

\begin{tikzpicture}
\pingu[glasses, glasses bend=45]
\end{tikzpicture}

/pingu/glasses upper bend = ⟨angle⟩(default: 8)

Requires glasses.

Sets the bending of the upper part of the glasses.

Compiled output

\begin{tikzpicture}
\pingu[glasses, glasses upper bend=30]
\end{tikzpicture}

/pingu/sun glasses = ⟨color⟩(default: pingu@black)

Configure the /pingu/glasses to display sunglasses. The color is passed on to /pingu/glasses fill

Compiled output

\begin{tikzpicture}
\pingu[sun glasses=orange]
\end{tikzpicture}

sunglasses: alias of sun glasses.