edugame-railway-operation/material/route_signal_token.tex

51 lines
3.0 KiB
TeX
Raw Normal View History

%!TEX TS-program = pdflatexmk
% Copyright 2019 Martin Scheidt (Attribution 4.0 International, CC-BY 4.0)
% You are free to copy and redistribute the material in any medium or format. You are free to remix, transform, and build upon the material for any purpose, even commercially. You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits. No warranties are given.
\documentclass{beamer}
\usepackage[
size=a4,
]{beamerposter}
\beamertemplatenavigationsymbolsempty
\def\ROOT{./..}
\input{\ROOT/src/material_header.tex}
\input{\ROOT/src/colors.tex}
% \input{\ROOT/src/hyperref.tex}
\newlength{\tokenradius}\setlength{\tokenradius}{1cm} % default 1cm
\newlength{\tokenheight}\setlength{\tokenheight}{2cm} % default 2cm
\tikzset{
pics/route_signal_go_token/.style args={#1}{
code={
% signal aspect
\draw[fill=#1] (0,0) circle [radius=\tokenradius]; % signal aspect
\draw[double] (-\tokenradius,0) -- ++(2\tokenradius,0); % signal aspect
% corpus
\draw[fill=base1!50] (\tokenradius,1.5\tokenradius) rectangle ++(6.283186\tokenradius,\tokenheight);
% adhesive edge
\tikzset{every path/.style={thin,base1}}
\draw (\tokenradius,1.5\tokenradius) -- ++(-0.5\tokenheight,0.25\tokenheight) -- ++(0,0.5\tokenheight) -- ++(0.5\tokenheight,0.25\tokenheight);
\draw (\tokenradius,1.5\tokenradius) -- ++(0.241661\tokenradius,-0.5\tokenheight) -- ++(0.241661\tokenradius,0.5\tokenheight) -- ++(0.241661\tokenradius,-0.5\tokenheight) -- ++(0.241661\tokenradius,0.5\tokenheight) -- ++(0.241661\tokenradius,-0.5\tokenheight) -- ++(0.241661\tokenradius,0.5\tokenheight) -- ++(0.241661\tokenradius,-0.5\tokenheight) -- ++(0.241661\tokenradius,0.5\tokenheight) -- ++(0.241661\tokenradius,-0.5\tokenheight) -- ++(0.241661\tokenradius,0.5\tokenheight) -- ++(0.241661\tokenradius,-0.5\tokenheight) -- ++(0.241661\tokenradius,0.5\tokenheight) -- ++(0.241661\tokenradius,-0.5\tokenheight) -- ++(0.241661\tokenradius,0.5\tokenheight) -- ++(0.241661\tokenradius,-0.5\tokenheight) -- ++(0.241661\tokenradius,0.5\tokenheight) -- ++(0.241661\tokenradius,-0.5\tokenheight) -- ++(0.241661\tokenradius,0.5\tokenheight) -- ++(0.241661\tokenradius,-0.5\tokenheight) -- ++(0.241661\tokenradius,0.5\tokenheight) -- ++(0.241661\tokenradius,-0.5\tokenheight) -- ++(0.241661\tokenradius,0.5\tokenheight) -- ++(0.241661\tokenradius,-0.5\tokenheight) -- ++(0.241661\tokenradius,0.5\tokenheight) -- ++(0.241661\tokenradius,-0.5\tokenheight) -- ++(0.241661\tokenradius,0.5\tokenheight);
}
},
pics/route_signal_go_token/.default=signalgreen,
}
\begin{document}
\selectlanguage{english} % currently supported: english, ngerman
\tikzset{every path/.style={ultra thick}}
\begin{frame}
\vfill
\begin{tikzpicture}[font=\sffamily]
\foreach \x in {0,9.5,19}
\foreach \y in {0,5,10,15}
\pic at (\x,\y) {route_signal_go_token};
\end{tikzpicture}
\vfil
\end{frame}
\end{document}