-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathtikzducks.sty
54 lines (48 loc) · 1.37 KB
/
tikzducks.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
% !TeX root = ./testing/test.tex
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% The tikzducks package
% A package to bring rubber ducks into tikz
% Maintained by samcarter
%
% Project repository and bug tracker:
% https://github.com/samcarter/tikzducks
%
% Released under the LaTeX Project Public License v1.3c or later
% See https://www.latex-project.org/lppl.txt
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\ProvidesPackage{tikzducks}[2025/01/05 version v1.10 Draw rubber ducks in TikZ]
\RequirePackage{expl3}
\RequirePackage{tikz}
\usetikzlibrary{patterns.meta} % for the wizard hat
\usetikzlibrary{calc} % for the sports jerseys
\usetikzlibrary{decorations.shapes} % for sombrero
\usetikzlibrary{decorations.pathmorphing}
\definecolor{duck@overleafcol}{RGB}{72,172,60}
\newcommand*{\duck}[1][]{%
\begin{scope}%
\tikzset{/duck/.cd,#1}%
\duck@draw%
\end{scope}%
}
\ExplSyntaxOn
\ifdefined\sys_rand_seed:
\pgfmathsetseed {\sys_rand_seed:}
\else
\ifdefined\pdfrandomseed % pdflatex
\else
\ifdefined\randomseed
\let\pdfrandomseed\randomseed % post TL19 xelatex and lualatex
\else
\let\pdfrandomseed\time % pre TL19 xelatex
\fi
\fi
\pgfmathsetseed{\number\pdfrandomseed}
\fi
\ExplSyntaxOff
\newcommand*{\stripes}[1][]{%
\tikzset{/stripes/.cd,#1}%
\stripes@draw%
}
\input tikzducks-generic