Debian Codegraph @

texmf-dist/tex/latex/tikzlings/tikzlings-meerkats.sty

raw
1 % !TeX root = ./examples/meerkat.tex
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %%
4 %% This package is part of the TikZlings package
5 %% A package to bring cute little animals and other beings into tikz
6 %% Maintained by samcarter
7 %%
8 %% Project repository and bug tracker:
9 %% https://github.com/samcarter/tikzlings
10 %%
11 %% Released under the LaTeX Project Public License v1.3c or later
12 %% See https://www.latex-project.org/lppl.txt
13 %%
14 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
15 \ProvidesPackage{tikzlings-meerkats}[2025/12/11 version v2.5 Drawing meerkats in TikZ]
16
17 \RequirePackage{tikz}
18 \RequirePackage{tikzlings-addons}
19
20 \newcommand*{\meerkat}[1][]{%
21 \begin{scope}%
22 \tikzset{/meerkat/.cd,#1}%
23 \meerkat@draw%
24 \end{scope}%
25 \thing[#1]%
26 % adding hook for users to customise %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
27 \UseHook{tikzlings/meerkat/foreground}
28 \UseHook{tikzlings/foreground}
29 \csname meerkathookforeground\endcsname
30 \csname tikzlinghookforeground\endcsname
31 %
32 }
33
34 \newif\ifmeerkat@standing
35 \newif\ifmeerkat@threeD
36 \newif\ifmeerkat@back
37 \newif\ifmeerkat@contour
38 \newif\ifmeerkat@openmouth
39
40 \NewHook{tikzlings/meerkat/background}
41 \NewHook{tikzlings/meerkat/belly}
42 \NewHook{tikzlings/meerkat/body}
43 \NewHook{tikzlings/meerkat/foreground}
44
45 \def\meerkat@shift{0}
46
47 \tikzset{
48 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
49 %
50 % Pass unknown keys on to tikz
51 %
52 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
53 /meerkat/.search also={/tikz,/pgf,/thing},
54 /meerkat/.cd,
55 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
56 %
57 % body
58 %
59 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
60 body/.store in = \meerkat@body,
61 body = brown,
62 upperbody/.store in = \meerkat@upperbody,
63 upperbody = \meerkat@body!70!white,
64 upper body/.forward to = /meerkat/upperbody,
65 chest/.store in = \meerkat@chest,
66 chest = \meerkat@body!45!white,
67 legs/.store in = \meerkat@legs,
68 legs = \meerkat@body,
69 leg/.forward to = /meerkat/legs,
70 tail/.store in = \meerkat@tail,
71 tail = \meerkat@body,
72 tip/.store in = \meerkat@tip,
73 tip = \meerkat@tail!50!black,
74 ears/.store in = \meerkat@ears,
75 ears = \meerkat@body!50!black,
76 ear/.forward to = /meerkat/ears,
77 eyes/.store in = \meerkat@eyes,
78 eyes = black,
79 eye/.forward to = /meerkat/eyes,
80 eyecircles/.store in = \meerkat@eyecircles,
81 eyecircles = \meerkat@body!75!black,
82 eye circles/.forward to = /meerkat/eyecircles,
83 eyecircle/.forward to = /meerkat/eyecircles,
84 muzzle/.store in = \meerkat@muzzle,
85 muzzle = \meerkat@body!45!white,
86 nose/.store in = \meerkat@nose,
87 nose = \meerkat@body!50!black,
88 mouth/.store in = \meerkat@mouth,
89 mouth = \meerkat@body!50!black,
90 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
91 %
92 % options
93 %
94 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
95 openmouth/.code = \meerkat@openmouthtrue,
96 open mouth/.forward to = /meerkat/openmouth,
97 standing/.code = \meerkat@standingtrue
98 \def\meerkat@shift{15},
99 3D/.code = \meerkat@threeDtrue,
100 back/.code = \meerkat@backtrue,
101 contour/.code = \meerkat@contourtrue
102 \def\meerkat@contour{#1}
103 \def\meerkat@blushcolor{#1}
104 \def\meerkat@mouth{#1},
105 contour/.default = black,
106 outline/.forward to = /meerkat/contour,
107 }
108
109 \def\meerkat@draw{%
110 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
111 %
112 % minimal bounding box size
113 %
114 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
115 \ifmeerkat@standing
116 \path (-0.55,0.05) rectangle (0.85, 2.65);
117 \else
118 \path (-0.55,0.05) rectangle (0.85, 2.13);
119 \fi
120 %
121 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
122 %
123 % store the current scale factor
124 % from https://github.com/samcarter/tikzlings/issues/3#issuecomment-461373494
125 %
126 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
127 \pgfgettransformentries{\tmpscaleA}{\tmpscaleB}{\tmpscaleC}{\tmpscaleD}{\tmp}{\tmp}%
128 \pgfmathsetmacro{\scalingfactor}{sqrt(abs(\tmpscaleA*\tmpscaleD-\tmpscaleB*\tmpscaleC))*sqrt(abs((\pgf@xx/1cm)*(\pgf@yy/1cm)-(\pgf@xy/1cm)*(\pgf@yx/1cm)))}%
129 \pgfmathsetmacro{\xscalefactor}{\tmpscaleA}
130 \pgfmathsetmacro{\yscalefactor}{\tmpscaleD}
131 %
132 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
133 %
134 % switch between 2D, 3D and contours, from
135 % https://chat.stackexchange.com/transcript/message/45991801#45991801
136 %
137 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
138 \ifmeerkat@threeD
139 \def\meerkat@part@draw[##1]{\shade[ball color=##1]}
140 \else% 3D
141 \ifmeerkat@contour
142 \def\meerkat@part@draw[##1]{\draw[##1,\meerkat@contour,fill=white,line width=\scalingfactor*0.4pt]}
143 \else% contour
144 \def\meerkat@part@draw[##1]{\fill[##1]}
145 \fi% contour
146 \fi% 3D
147 %
148 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
149 %
150 % Body parts
151 %
152 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
153 %
154 % adding hook for users to customise %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
155 \UseHook{tikzlings/meerkat/background}
156 \UseHook{tikzlings/background}
157 \csname meerkathookbackground\endcsname
158 \csname tikzlinghookbackground\endcsname
159 %
160 \ifmeerkat@standing
161 %
162 \unless\ifmeerkat@back
163 % Tail %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
164 \meerkat@part@draw[\meerkat@tail] (0.0071, 1.0065).. controls (0.0949, 0.7556) and (0.2077, 0.5139) .. (0.3436, 0.2854).. controls (0.3809, 0.2966) and (0.4183, 0.3078) .. (0.4557, 0.319).. controls (0.3377, 0.5524) and (0.2434, 0.7968) .. (0.174, 1.049);
165 %
166 % Tip of tail %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
167 \meerkat@part@draw[\meerkat@tip] (0.8483, 0.1284).. controls (0.7159, 0.1309) and (0.575, 0.1064) .. (0.4503, 0.163).. controls (0.3999, 0.1871) and (0.3617, 0.2328) .. (0.3436, 0.2854).. controls (0.3809, 0.2966) and (0.4183, 0.3078) .. (0.4557, 0.319).. controls (0.5224, 0.2163) and (0.6411, 0.1646) .. (0.7581, 0.145).. controls (0.7881, 0.1389) and (0.8182, 0.1337) .. (0.8483, 0.1284) -- cycle;
168 \fi %back
169 %
170 % Legs %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
171 \meerkat@part@draw[\meerkat@legs] (-0.3454, 1.3191).. controls (-0.3768, 1.128) and (-0.4158, 0.9325) .. (-0.3865, 0.7386).. controls (-0.3749, 0.6541) and (-0.3231, 0.5584) .. (-0.2285, 0.5516).. controls (-0.1819, 0.5615) and (-0.1524, 0.5219) .. (-0.1531, 0.48).. controls (-0.1406, 0.4015) and (-0.126, 0.3232) .. (-0.1147, 0.2446).. controls (-0.1149, 0.1841) and (-0.2292, 0.195) .. (-0.2042, 0.1256).. controls (-0.1635, 0.0562) and (-0.0406, 0.0684) .. (-0.021, 0.15).. controls (0.0009, 0.2391) and (-0.0108, 0.3319) .. (-0.0078, 0.4229).. controls (-0.0101, 0.4797) and (-0.0028, 0.5377) .. (-0.0126, 0.5937).. controls (-0.0473, 0.6539) and (-0.1009, 0.7107) .. (-0.0889, 0.7877).. controls (-0.0857, 0.8768) and (-0.0601, 0.963) .. (-0.0454, 1.0505);
172 \meerkat@part@draw[\meerkat@legs] (0.3522, 1.3191).. controls (0.3836, 1.128) and (0.4226, 0.9325) .. (0.3932, 0.7386).. controls (0.3817, 0.6541) and (0.3299, 0.5584) .. (0.2352, 0.5516).. controls (0.1887, 0.5615) and (0.1592, 0.5219) .. (0.1599, 0.48).. controls (0.1474, 0.4015) and (0.1327, 0.3232) .. (0.1215, 0.2446).. controls (0.1217, 0.1841) and (0.236, 0.195) .. (0.211, 0.1256).. controls (0.1702, 0.0562) and (0.0474, 0.0684) .. (0.0278, 0.15).. controls (0.0058, 0.2391) and (0.0176, 0.3319) .. (0.0146, 0.4229).. controls (0.0168, 0.4797) and (0.0095, 0.5377) .. (0.0194, 0.5937).. controls (0.0541, 0.6539) and (0.1077, 0.7107) .. (0.0956, 0.7877).. controls (0.0924, 0.8768) and (0.0668, 0.963) .. (0.0521, 1.0505);
173 %
174 \ifmeerkat@back
175 % Tail %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
176 \meerkat@part@draw[\meerkat@tail] (0.0071, 1.0065).. controls (0.0949, 0.7556) and (0.2077, 0.5139) .. (0.3436, 0.2854).. controls (0.3809, 0.2966) and (0.4183, 0.3078) .. (0.4557, 0.319).. controls (0.3377, 0.5524) and (0.2434, 0.7968) .. (0.174, 1.049);
177 %
178 % Tip of tail %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
179 \meerkat@part@draw[\meerkat@tip] (0.8483, 0.1284).. controls (0.7159, 0.1309) and (0.575, 0.1064) .. (0.4503, 0.163).. controls (0.3999, 0.1871) and (0.3617, 0.2328) .. (0.3436, 0.2854).. controls (0.3809, 0.2966) and (0.4183, 0.3078) .. (0.4557, 0.319).. controls (0.5224, 0.2163) and (0.6411, 0.1646) .. (0.7581, 0.145).. controls (0.7881, 0.1389) and (0.8182, 0.1337) .. (0.8483, 0.1284) -- cycle;
180 \fi %back
181 \else % sitting meerkat
182 %
183 \unless\ifmeerkat@back
184 % Tail %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
185 \meerkat@part@draw[\meerkat@tail] (-0.0555, 0.5998).. controls (-0.0555, 0.4298) and (0.1812, 0.2011) .. (0.341, 0.143) -- (0.44, 0.253).. controls (0.3106, 0.3001) and (0.0959, 0.4717) .. (0.0959, 0.6094);
186 %
187 % Tip of the tail %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
188 \meerkat@part@draw[\meerkat@tip] (0.836, 0.132).. controls (0.6422, 0.132) and (0.5231, 0.0767) .. (0.341, 0.143) -- (0.44, 0.253).. controls (0.5922, 0.1976) and (0.6765, 0.1601) .. (0.836, 0.132);
189 \fi % back
190 %
191 % Legs %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
192 \meerkat@part@draw[\meerkat@legs] (-0.2759, 0.6554).. controls (-0.2927, 0.7506) and (-0.3983, 0.77) .. (-0.4598, 0.77).. controls (-0.4793, 0.77) and (-0.4959, 0.7543) .. (-0.4971, 0.7349).. controls (-0.5094, 0.5297) and (-0.4208, 0.3526) .. (-0.2493, 0.2393).. controls (-0.2331, 0.2287) and (-0.236, 0.2231) .. (-0.2551, 0.22) -- (-0.4553, 0.1878).. controls (-0.4745, 0.1847) and (-0.5016, 0.1767) .. (-0.5153, 0.1629).. controls (-0.5208, 0.1574) and (-0.5208, 0.1081) .. (-0.5153, 0.1026).. controls (-0.5016, 0.0889) and (-0.4747, 0.0794) .. (-0.4553, 0.0796).. controls (-0.0935, 0.0833) and (-0.055, 0.0466) .. (-0.055, 0.1848).. controls (-0.055, 0.2042) and (-0.0521, 0.2354) .. (-0.0485, 0.2545) -- (-0.0187, 0.4185);
193 \meerkat@part@draw[\meerkat@legs] (0.2759, 0.6554).. controls (0.2927, 0.7506) and (0.3983, 0.77) .. (0.4598, 0.77).. controls (0.4793, 0.77) and (0.4959, 0.7543) .. (0.4971, 0.7349).. controls (0.5094, 0.5297) and (0.4208, 0.3526) .. (0.2493, 0.2393).. controls (0.2331, 0.2287) and (0.236, 0.2231) .. (0.2551, 0.22) -- (0.4553, 0.1878).. controls (0.4745, 0.1847) and (0.5016, 0.1767) .. (0.5153, 0.1629).. controls (0.5208, 0.1574) and (0.5208, 0.1081) .. (0.5153, 0.1026).. controls (0.5016, 0.0889) and (0.4747, 0.0794) .. (0.4553, 0.0796).. controls (0.0935, 0.0833) and (0.055, 0.0466) .. (0.055, 0.1848).. controls (0.055, 0.2042) and (0.0521, 0.2354) .. (0.0485, 0.2545) -- (0.0187, 0.4185);
194 %
195 \ifmeerkat@back
196 % Tail %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
197 \meerkat@part@draw[\meerkat@tail] (-0.0555, 0.5998).. controls (-0.0555, 0.4298) and (0.1812, 0.2011) .. (0.341, 0.143) -- (0.44, 0.253).. controls (0.3106, 0.3001) and (0.0959, 0.4717) .. (0.0959, 0.6094);
198 %
199 % Tip of the tail %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
200 \meerkat@part@draw[\meerkat@tip] (0.836, 0.132).. controls (0.6422, 0.132) and (0.5231, 0.0767) .. (0.341, 0.143) -- (0.44, 0.253).. controls (0.5922, 0.1976) and (0.6765, 0.1601) .. (0.836, 0.132);
201 \fi % back
202 %
203 \fi % standling
204 %
205 \begin{scope}[yshift=\meerkat@shift]
206 %
207 % Body %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
208 \meerkat@part@draw[\meerkat@body] (0,0.77) circle [radius=0.35];
209 %
210 % Upper body %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
211 \ifmeerkat@back
212 \meerkat@part@draw[\meerkat@upperbody] (-0.374, 1.32).. controls (-0.3892, 1.1462) and (-0.2287, 0.903) .. (-0.0859, 0.7515).. controls (-0.0594, 0.7213) and (-0.031, 0.691) .. (0.0, 0.66).. controls (0.031, 0.691) and (0.0595, 0.7213) .. (0.0859, 0.7515).. controls (0.2399, 0.9179) and (0.3892, 1.1462) .. (0.374, 1.32).. controls (0.374, 1.4277) and (0.1868, 1.582) .. (0.0, 1.65).. controls (-0.1876, 1.5817) and (-0.374, 1.4271) .. (-0.374, 1.32) -- cycle;
213 \else
214 \meerkat@part@draw[\meerkat@upperbody] (-0.374, 1.32).. controls (-0.3974, 1.0521) and (-0.176, 0.9289) .. (-0.176, 0.66).. controls (-0.176, 0.467) and (-0.077, 0.467) .. (-0.077, 0.66).. controls (-0.077, 0.6924) and (-0.0803, 0.7227) .. (-0.0859, 0.7515).. controls (-0.0594, 0.7213) and (-0.031, 0.691) .. (-0.0, 0.66).. controls (0.031, 0.691) and (0.0595, 0.7213) .. (0.0859, 0.7515).. controls (0.0803, 0.7227) and (0.077, 0.6924) .. (0.077, 0.66).. controls (0.077, 0.467) and (0.176, 0.467) .. (0.176, 0.66).. controls (0.176, 0.9289) and (0.3974, 1.0521) .. (0.374, 1.32).. controls (0.374, 1.4277) and (0.1868, 1.582) .. (-0.0, 1.65).. controls (-0.1876, 1.5817) and (-0.374, 1.4271) .. (-0.374, 1.32) -- cycle;
215 \fi % back
216 %
217 % adding hook for users to customise %%%%%%%%%%%%%%%%%%%%%%%%%%%%%
218 \UseHook{tikzlings/meerkat/belly}
219 \UseHook{tikzlings/belly}
220 \csname meerkathookbelly\endcsname
221 \csname tikzlinghookbelly\endcsname
222 %
223 % Chest %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
224 \unless\ifmeerkat@back
225 \meerkat@part@draw[\meerkat@chest] (-0.0, 1.54).. controls (-0.1378, 1.54) and (-0.275, 1.4578) .. (-0.275, 1.32).. controls (-0.275, 1.1168) and (-0.1437, 1.0237) .. (-0.0, 0.88).. controls (0.1437, 1.0237) and (0.275, 1.1168) .. (0.275, 1.32).. controls (0.275, 1.4578) and (0.1378, 1.54) .. (-0.0, 1.54) -- cycle;
226 \fi % back
227 %
228 % Ears %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
229 \meerkat@part@draw[\meerkat@ears] (-0.35, 1.87) circle [radius=0.11];
230 \meerkat@part@draw[\meerkat@ears] (0.35, 1.87) circle [radius=0.11];
231 %
232 % Head %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
233 \ifmeerkat@back
234 \meerkat@part@draw[\meerkat@muzzle] (0,1.7) ellipse [x radius=0.38, y radius=0.21];
235 \meerkat@part@draw[\meerkat@body] (0,1.775) ellipse [x radius=0.34, y radius=0.32];
236 \else
237 \meerkat@part@draw[\meerkat@body] (0,1.85) ellipse [x radius=0.34, y radius=0.25];
238 \meerkat@part@draw[\meerkat@muzzle] (0,1.7) ellipse [x radius=0.38, y radius=0.21];
239 %
240 % Nose %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
241 \meerkat@part@draw[\meerkat@nose] (0.0176, 1.6987) -- (0.0437, 1.7439).. controls (0.0534, 1.7607) and (0.0455, 1.7743) .. (0.0261, 1.7743) -- (-0.0261, 1.7743).. controls (-0.0455, 1.7743) and (-0.0534, 1.7607) .. (-0.0437, 1.7439) -- (-0.0176, 1.6987).. controls (-0.0079, 1.6819) and (0.0079, 1.6819) .. (0.0176, 1.6987) -- cycle;
242 %
243 % Mouth %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
244 \ifmeerkat@openmouth
245 \filldraw[\meerkat@mouth,line width=\scalingfactor*0.4pt] (-0.16, 1.727) .. controls (-0.16, 1.727) and (-0.062, 1.62) .. (0, 1.7) .. controls (0.062, 1.62) and (0.16, 1.727) .. (0.16, 1.727) (0.16, 1.727) arc [start angle=-20, end angle=-160, radius=0.17];
246 \else
247 \draw[\meerkat@mouth,line width=\scalingfactor*0.4pt] (-0.16, 1.727) .. controls (-0.16, 1.727) and (-0.062, 1.62) .. (0, 1.7) .. controls (0.062, 1.62) and (0.16, 1.727) .. (0.16, 1.727);
248 \fi
249 %
250 % Eyes %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
251 \meerkat@part@draw[\meerkat@eyecircles,rotate=30] (0.75,1.7) ellipse [x radius=0.14, y radius=0.08];
252 \meerkat@part@draw[\meerkat@eyecircles,rotate=-30] (-0.75,1.7) ellipse [x radius=0.14, y radius=0.08];
253 \meerkat@part@draw[\meerkat@eyes] (0.18,1.86) circle [radius=0.055];
254 \meerkat@part@draw[\meerkat@eyes] (-0.18,1.86) circle [radius=0.055];
255 \meerkat@part@draw[white] (0.165,1.88) circle [radius=0.01];
256 \meerkat@part@draw[white] (-0.195,1.88) circle [radius=0.01];
257 \fi % back
258 %
259 % adding hook for users to customise %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
260 \UseHook{tikzlings/meerkat/body}
261 \UseHook{tikzlings/body}
262 \csname meerkathookbody\endcsname
263 \csname tikzlinghookbody\endcsname
264 %
265 \end{scope}% body shift
266 }
267
268 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
269 %%
270 %% Documentation
271 %%
272 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
273 %\clearpage
274 %\section[Meerkat]{Ambrogio, the meerkat}
275 %
276 %\emph{The Meerkat was first created by Carla for the Great TikZlings Extravanganza 2022\footnote{\url{https://github.com/TikZlings/Extravaganza2022}}. Ambrogio got his name from the patreon saint of his home town Milan, Saint Ambrogio}
277 %
278 %\subsection{Package name}
279 %
280 %\begin{tcolorbox}[title={Package usage}]
281 %\begin{samcode}
282 %\usepackage{tikzlings-meerkats}
283 %\end{samcode}
284 %\end{tcolorbox}
285 %
286 %\subsection{Basic Usage}
287 %
288 %\begin{tcblisting}{title={Basic meerkat}}
289 %\meerkat
290 %\end{tcblisting}
291 %
292 %\subsection{Options}
293 %
294 %The basic meerkat can be modified by changing its colour:
295 %\begin{tcblisting}{title={Body colour}}
296 %\meerkat[body=blue]
297 %\end{tcblisting}
298 %
299 %In addition to the colour of the body, the colour of various body parts can be adjusted:
300 %\begin{tcblisting}{title={Eye colour}}
301 %\meerkat[eyes=red]
302 %\end{tcblisting}
303 %\begin{tcblisting}{title={Eye circle colour}}
304 %\meerkat[eyecircles=red]
305 %\end{tcblisting}
306 %\begin{tcblisting}{title={Ear colour}}
307 %\meerkat[ears=red]
308 %\end{tcblisting}
309 %\begin{tcblisting}{title={Muzzle colour}}
310 %\meerkat[muzzle=red]
311 %\end{tcblisting}
312 %\begin{tcblisting}{title={Nose colour}}
313 %\meerkat[nose=red]
314 %\end{tcblisting}
315 %\begin{tcblisting}{title={Mouth colour}}
316 %\meerkat[mouth=red]
317 %\end{tcblisting}
318 %\begin{tcblisting}{title={Upper body colour}}
319 %\meerkat[upperbody=red]
320 %\end{tcblisting}
321 %\begin{tcblisting}{title={Chest colour}}
322 %\meerkat[chest=red]
323 %\end{tcblisting}
324 %\begin{tcblisting}{title={Leg colour}}
325 %\meerkat[legs=red]
326 %\end{tcblisting}
327 %\begin{tcblisting}{title={Tail colour}}
328 %\meerkat[tail=red]
329 %\end{tcblisting}
330 %\begin{tcblisting}{title={Tail tip colour}}
331 %\meerkat[tip=red]
332 %\end{tcblisting}
333 %
334 % The meerkat can open its mouth:
335 %\begin{tcblisting}{title={Open mouth}}
336 %\meerkat[openmouth]
337 %\end{tcblisting}
338 %
339 %The meerkat can also stand up
340 %\begin{tcblisting}{title={Standing meerkat}}
341 %\meerkat[standing]
342 %\end{tcblisting}
343 %
344 %To view the meerkat from behind:
345 %\begin{tcblisting}{title={Back view}}
346 %\meerkat[back]
347 %\end{tcblisting}
348 %
349 %The key \saminline|3D| will make the meerkat 3-dimensional:
350 %\begin{tcblisting}{title={3D view}}
351 %\meerkat[3D]
352 %\end{tcblisting}
353 %
354 %And finally the \saminline|contour| key will only draw the outlines:
355 %\begin{tcblisting}{title={Contours}}
356 %\meerkat[contour=black]
357 %\end{tcblisting}