Last active
May 17, 2023 12:09
-
-
Save Krockema/d0c3d5aed9aefb27e1796a90f49e9eb8 to your computer and use it in GitHub Desktop.
Kuka like Robot for Latex/tikz as Resuable Icon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% preambel: | |
\documentclass[tikz]{standalone}% andere Klassen sind möglich | |
\usepackage{tikz} | |
\usetikzlibrary{shapes% | |
,shapes.misc% | |
,shapes.symbols% | |
,positioning% | |
} | |
\begin{document} | |
\tikzset{pics/.cd, | |
kuka/.style={ | |
code={ | |
\node[draw=black, rounded corners=1mm, fill=black, thin, minimum size=2mm, text width=10mm] (base) {}; | |
\node[trapezium, rounded corners=1mm, above of=base, fill=black, minimum height=7mm, minimum width=12mm, node distance=6mm, inner xsep=2pt, trapezium angle=67.5] (base2) {}; | |
\node[trapezium, rounded corners=1mm, above of=base2, fill=black, minimum height=15mm, minimum width=5mm, node distance=6mm, inner xsep=0.5pt, trapezium angle=80, rotate=45, yshift=5mm, xshift=-2mm] (base3) {}; | |
\node[circle, fill=black, draw=white, minimum width=6mm, line width=1mm, above of=base, node distance=9mm] (cog) {}; | |
\node[trapezium, rounded corners=1mm, above of=base2, fill=black, minimum height=15mm, minimum width=3mm, node distance=6mm, inner xsep=0.5pt, trapezium angle=85, rotate=-90, yshift=-2mm, xshift=-8mm] (base4) {}; | |
\node[circle, fill=black, draw=white, minimum width=3mm, line width=1mm, above of=base2, node distance=14mm, xshift=-9.5mm] (cog2) {}; | |
\node[trapezium, rounded corners=1mm, above of=base2, fill=black, minimum height=5mm, minimum width=1mm, node distance=6mm, rotate=25, yshift=3mm, xshift=8mm,inner xsep=0.5pt] (base5) {}; | |
\node[circle, fill=black, draw=white, minimum width=3mm, line width=1mm, above of=base2, node distance=14mm, xshift=5mm] (cog3) {}; | |
\node[rounded corners=1pt, right of=base5, fill=black, minimum height=3mm, inner sep=1, node distance=1mm, rotate=-5, yshift=-2.5mm, xshift=1.5mm] (base6) {}; | |
\node[rounded corners=1pt, right of=base5, fill=black, minimum height=3mm, inner sep=1, node distance=1mm, rotate=35, yshift=-2.5mm, xshift=-2.5mm] (base7) {}; | |
}}} | |
\newcommand{\kukaIcon}[1] { | |
\adjustbox{max width=#1}{ | |
\begin{tikzpicture} \path (0,0) pic{kuka};\end{tikzpicture} | |
} | |
} | |
\begin{tikzpicture} | |
\node[] {\kukaIcon{0.35pt}}; | |
\end{tikzpicture} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment