summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/tikzpingus/tikzpingus-magic.lib.tex
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/pgf/contrib/tikzpingus/tikzpingus-magic.lib.tex')
-rw-r--r--graphics/pgf/contrib/tikzpingus/tikzpingus-magic.lib.tex14
1 files changed, 14 insertions, 0 deletions
diff --git a/graphics/pgf/contrib/tikzpingus/tikzpingus-magic.lib.tex b/graphics/pgf/contrib/tikzpingus/tikzpingus-magic.lib.tex
new file mode 100644
index 0000000000..a5e3fb2ddc
--- /dev/null
+++ b/graphics/pgf/contrib/tikzpingus/tikzpingus-magic.lib.tex
@@ -0,0 +1,14 @@
+% Florian Sihler, 2022
+% Licensed under GNU General Public License version 3
+% https://opensource.org/licenses/gpl-3.0.html
+\pingu@create@wing@extra{handcast}{%
+ handcast \@lr/.forward to = /pingu/hand cast \@lr,
+ hand cast \@lr/.code = {\pingu@set@extra{handcast\@lr}{true}\@namedef{pingu@handcast@\@lr}{##1}},
+ hand cast \@lr/.default = {X},
+ handcast \@lr\space color/.forward to = /pingu/hand cast \@lr\space color,
+ hand cast \@lr\space color/.code = \pingu@color{handcast@\@lr @color}{##1},%
+}{hand cast \@lr\space color=pingu@purple}
+\def\pingu@draw@wi@handcast#1{%
+ \pingu@setup@wing{handcast}{#1}%
+ \path[rotate around={\@angle:(\pingu@name-wing-#1)}] (\pingu@name-wing-#1)++(0,5mm) node[\csname pingu@color@handcast@#1@color\endcsname] {\@nameuse{pingu@handcast@#1}};
+} \ No newline at end of file