Skip to content

Instantly share code, notes, and snippets.

@neic
Created March 14, 2014 12:11
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neic/9546556 to your computer and use it in GitHub Desktop.
Save neic/9546556 to your computer and use it in GitHub Desktop.
Pacman icons in TikZ
\newcommand{\ghost}[1]{\tikz[baseline=.1em,scale=.5]{
\draw [fill=#1] (0,0) -- (0,.5) arc (+180:0:.3) -- (.6,0) --
(.5,.15) -- (.4,0) -- (.3,.15) -- (.2,0) -- (.1,.15) -- cycle;
\coordinate (eye) at (360*rand:.03);
\foreach \x in {.17,.43}{
\fill[white] (\x,.5) circle[radius=.1];
\fill[black] (\x,.5) ++(eye) circle[radius=.05];
}
}}
\newcommand{\pacman}[1]{\tikz[baseline=.1em,scale=.6]{
\useasboundingbox (.02,0) rectangle (.6,.6);
\draw [fill=#1] (.3,.3) -- ++(25:.3) arc (+25:+335:.3) -- cycle;
}}
\begin{tabular}{ll}
\ghost{yellow!85!red} & FORM\\
\pacman{yellow} & NF\\
\ghost{yellow!60} & SEKR\\
\ghost{red!30} & \CERM\\
\ghost{magenta} & PR\\
\ghost{red!90!blue} & \KASS\\
\ghost{green!90!black} & \VC\\
\end{tabular}
VC/Ti\textcolor{orange}{\emph{k}}Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment