Debian Codegraph @

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

raw
1 % !TeX root = ./testing/test.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-addons}[2025/12/11 version v2.5 Draw additional items for the tikzlings]
16
17 \RequirePackage{tikz}
18 \usetikzlibrary{patterns} % for the wizard hat
19 \usetikzlibrary{decorations.shapes} % for sombrero
20 \usetikzlibrary{decorations.pathmorphing}
21
22 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
23 %
24 % List of all TikZlings
25 %
26 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
27 \RequirePackage{tikzlings-list}
28
29 \ExplSyntaxOn
30 \seq_clear:N \l_tmpa_seq
31
32 \clist_map_inline:Nn \g__tikzlings_names_clist
33 {
34 \seq_put_right:Nn \l_tmpa_seq { /#1 }
35 }
36
37 % Comma list such as '/anteater,/bat,/bear,...,/wolf' for use with the
38 % '.search also' handler
39 \clist_const:Nx \c__tikzlings_search_paths_clist
40 {
41 \seq_use:Nn \l_tmpa_seq { , }
42 }
43
44 \cs_new_eq:NN \tikzlings@search@paths@clist \c__tikzlings_search_paths_clist
45 \ExplSyntaxOff
46
47 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
48 %
49 % Addons
50 %
51 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
52
53 \newcommand*{\thing}[1][]{%
54 \begin{scope}%
55 \tikzset{/thing/.cd,#1}%
56 \thing@draw%
57 \end{scope}%
58 }
59
60 \def\thing@listhead{}
61 \def\thing@listacces{}
62
63 \ExplSyntaxOn
64 % based on https://topanswers.xyz/tex?q=8082#a7698
65 \NewDocumentCommand{\thing@ini}{om}{
66 \expandafter\newif\csname ifthing@#2\endcsname
67 \IfValueT{#1}{
68 \tl_put_right:cn { thing@list#1 } { {#2} }
69 }
70 }
71 \ExplSyntaxOff
72
73 % Hats %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
74 \thing@ini[head]{hat}
75 \thing@ini[head]{tophat}
76 \thing@ini[head]{beret}
77 \thing@ini[head]{strawhat}
78 \thing@ini[head]{harlequin}
79 \thing@ini[head]{witch}
80 \thing@ini[head]{magichat}
81 \thing@ini[head]{crown}
82 \thing@ini[head]{queencrown}
83 \thing@ini[head]{kingcrown}
84 \thing@ini[head]{santa}
85 \thing@ini[head]{chef}
86 \thing@ini[head]{graduate}
87 \thing@ini[head]{sombrero}
88 \thing@ini[head]{alien}
89 % Communication %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
90 \thing@ini[acces]{book}
91 \thing@ini[acces]{signpost}
92 \thing@ini{speech}
93 \thing@ini{think}
94 % Food %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
95 \thing@ini[acces]{pizza}
96 \thing@ini{davidlikespineapplepizza}
97 \thing@ini[acces]{cheese}
98 \thing@ini[acces]{baguette}
99 \thing@ini[acces]{cake}
100 \thing@ini[acces]{icecream}
101 \thing@ini[acces]{milkshake}
102 \thing@ini[acces]{wine}
103 \thing@ini[acces]{cocktail}
104 \thing@ini[acces]{banana}
105 % Sport %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
106 \thing@ini[acces]{cricket}
107 \thing@ini[acces]{hockey}
108 \thing@ini[acces]{football}
109 % Other %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
110 \thing@ini[acces]{crystalball}
111 \thing@ini[acces]{magicwand}
112 \thing@ini[acces]{rollingpin}
113 \thing@ini[acces]{lightsaber}
114 \thing@ini[acces]{torch}
115 \thing@ini[acces]{basket}
116 \thing@ini[acces]{easter}
117 \thing@ini[acces]{crozier}
118 \thing@ini[acces]{shovel}
119 \thing@ini[acces]{pickaxe}
120 \thing@ini[acces]{strawbroom}
121 \thing@ini[acces]{broom}
122 \thing@ini[acces]{umbrella}
123 \thing@ini[acces]{umbrellaclosed}
124 \thing@ini[acces]{handbag}
125 \thing@ini[acces]{stick}
126 \thing@ini[acces]{towel}
127 \thing@ini[acces]{present}
128
129 \tikzset{%
130 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
131 %
132 % General
133 %
134 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
135 /thing/.search also/.expanded = {/tikz, /pgf, \tikzlings@search@paths@clist},
136 %/thing/.unknown/.code=\relax, % bad idea, prevents tikz/pgf keys
137 /thing/.cd,
138 randomhead/.code = \shufflethings,
139 randomhead/.forward to = /thing/\randomhead,
140 randomaccessories/.code = \shufflethings,
141 randomaccessories/.forward to = /thing/\randomaccessories,
142 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
143 %
144 % Hats
145 %
146 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
147 hat/.code = \thing@hattrue
148 \def\thing@hat{#1},
149 hat/.default = blue!40!black,
150 tophat/.code = \thing@tophattrue
151 \def\thing@tophat{#1},
152 top hat/.forward to = /thing/tophat,
153 tophat/.default = black!90!white,
154 beret/.code = \thing@berettrue
155 \def\thing@beret{#1},
156 beret/.default = black,
157 strawhat/.code = \thing@strawhattrue
158 \def\thing@strawhat{#1},
159 straw hat/.forward to = /thing/strawhat,
160 strawhat/.default = gray!30!white,
161 ribbon/.code = \def\thing@ribbon{#1},
162 ribbon = black,
163 harlequin/.code = \thing@harlequintrue
164 \def\thing@harlequin{#1},
165 harlequin/.default = blue,
166 niuqelrah/.code = \def\thing@niuqelrah{#1},
167 niuqelrah = red,
168 witch/.code = \thing@witchtrue
169 \def\thing@witch{#1},
170 witch/.default = black,
171 magichat/.code = \thing@magichattrue
172 \def\thing@magichat{#1},
173 magic hat/.forward to = /thing/magichat,
174 magichat/.default = violet,
175 magicstars/.code = \def\thing@magicstars{#1},
176 magic stars/.forward to = /thing/magicstars,
177 magicstars = yellow!80!brown,
178 crown/.code = \thing@crowntrue
179 \def\thing@crown{#1},
180 crown/.default = yellow!90!orange,
181 queencrown/.code = \thing@queencrowntrue
182 \def\thing@queencrown{#1},
183 queen crown/.forward to = /thing/queencrown,
184 queencrown/.default = yellow,
185 kingcrown/.code = \thing@kingcrowntrue
186 \def\thing@kingcrown{#1},
187 king crown/.forward to = /thing/kingcrown,
188 kingcrown/.default = gray,
189 santa/.code = \thing@santatrue
190 \def\thing@santa{#1},
191 santa/.default = red!80!black,
192 chef/.code = \thing@cheftrue
193 \def\thing@chef{#1},
194 chef/.default = gray!20!white,
195 graduate/.code = \thing@graduatetrue
196 \def\thing@graduate{#1},
197 graduate/.default = black,
198 tassel/.code = \def\thing@tassel{#1},
199 tassel = red,
200 sombrero/.code = \thing@sombrerotrue
201 \def\thing@sombrero{#1},
202 sombrero/.default = orange!70!yellow,
203 sombreroa/.code = \def\thing@sombreroa{#1},
204 sombreroa = green!70!blue,
205 sombrerob/.code = \def\thing@sombrerob{#1},
206 sombrerob = red,
207 sombreroc/.code = \def\thing@sombreroc{#1},
208 sombreroc = blue,
209 alien/.code = \thing@alientrue
210 \def\thing@alien{#1},
211 alien/.default = green,
212 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
213 %
214 % Communication
215 %
216 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
217 book/.code = \thing@booktrue
218 \def\thing@book{#1},
219 bookcolour/.code = \def\thing@bookcolour{#1},
220 book colour/.forward to = /thing/bookcolour,
221 book color/.forward to = /thing/bookcolour,
222 bookcolor/.forward to = /thing/bookcolour,
223 bookcolour = brown,
224 signpost/.code = \thing@signposttrue
225 \def\thing@signpost{#1},
226 sign post/.forward to = /thing/signpost,
227 signcolour/.code = \def\thing@signcolour{#1},
228 sign colour/.forward to = /thing/signcolour,
229 sign color/.forward to = /thing/signcolour,
230 signcolor/.forward to = /thing/signcolour,
231 signcolour = brown!50!black,
232 signback/.code = \def\thing@signback{#1},
233 sign back/.forward to = /thing/signback,
234 signback = green!40!black,
235 speech/.code = \thing@speechtrue
236 \def\thing@speech{#1},
237 think/.code = \thing@thinktrue
238 \def\thing@think{#1},
239 bubblecolour/.code = \def\thing@bubblecolour{#1},
240 bubble colour/.forward to = /thing/bubblecolour,
241 bubble color/.forward to = /thing/bubblecolour,
242 bubblecolor/.forward to = /thing/bubblecolour,
243 bubblecolour = gray!30!white,
244 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
245 %
246 % Food
247 %
248 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
249 pizza/.code = \thing@pizzatrue,
250 davidlikespineapplepizza/.code = \thing@davidlikespineapplepizzatrue
251 \thing@speechtrue
252 \def\thing@speech{\scalebox{\scalingfactor}{\scalebox{0.9}{\tiny ih, che schifo!}}},
253 david likes pineapple pizza/.forward to = /thing/davidlikespineapplepizza,
254 cheese/.code = \thing@cheesetrue
255 \def\thing@cheese{#1},
256 cheese/.default = yellow!30!orange!60!white,
257 baguette/.code = \thing@baguettetrue
258 \def\thing@baguette{#1},
259 baguette/.default = brown,
260 cake/.code = \thing@caketrue
261 \def\thing@cake{#1},
262 cake/.default = violet,
263 icecream/.code = \thing@icecreamtrue
264 \def\thing@cone{#1},
265 ice cream/.forward to = /thing/icecream,
266 icecream/.default = brown!60!gray,
267 flavoura/.code = \def\thing@flavoura{#1},
268 flavour a/.forward to = /thing/flavoura,
269 flavoura = brown!50!black,
270 flavourb/.code = \def\thing@flavourb{#1},
271 flavour b/.forward to = /thing/flavourb,
272 flavourb = white!70!brown,
273 flavourc/.code = \def\thing@flavourc{#1},
274 flavour c/.forward to = /thing/flavourc,
275 flavourc = red!50!white,
276 milkshake/.code = \thing@milkshaketrue
277 \def\thing@milkshake{#1},
278 milkshake/.default = red!20!white,
279 wine/.code = \thing@winetrue
280 \def\thing@wine{#1},
281 wine/.default = red!70!black,
282 cocktail/.code = \thing@cocktailtrue,
283 banana/.code = \thing@bananatrue
284 \def\thing@banana{#1},
285 banana/.default = yellow!80!orange,
286 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
287 %
288 % Sport
289 %
290 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
291 cricket/.code = \thing@crickettrue
292 \def\thing@cricket{#1},
293 cricket/.default = brown,
294 hockey/.code = \thing@hockeytrue
295 \def\thing@hockey{#1},
296 hockey/.default = brown,
297 football/.code = \thing@footballtrue
298 \def\thing@football{#1},
299 football/.default = white,
300 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
301 %
302 % other items
303 %
304 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
305 crystalball/.code = \thing@crystalballtrue
306 \def\thing@crystalball{#1},
307 crystal ball/.forward to = /thing/crystalball,
308 crystalball/.default = cyan,
309 magicwand/.code = \thing@magicwandtrue,
310 magic want/.forward to = /thing/magicwand,
311 rollingpin/.code = \thing@rollingpintrue
312 \def\thing@rollingpin{#1},
313 rolling pin/.forward to = /thing/rollingpin,
314 rollingpin/.default = brown,
315 lightsaber/.code = \thing@lightsabertrue
316 \def\thing@lightsaber{#1},
317 light saber/.forward to = /thing/lightsaber,
318 lightsaber/.default = green,
319 torch/.code = \thing@torchtrue
320 \def\thing@torch{#1},
321 torch/.default = gray,
322 basket/.code = \thing@baskettrue
323 \def\thing@basket{#1},
324 basket/.default = brown!70!gray,
325 easter/.code = \thing@eastertrue
326 \thing@baskettrue
327 \def\thing@basket{#1},
328 easter/.default = brown!70!gray,
329 egga/.code = \def\thing@egga{#1},
330 egg a/.forward to = /thing/egga,
331 egga = blue,
332 eggb/.code = \def\thing@eggb{#1},
333 egg b/.forward to = /thing/eggb,
334 eggb = green,
335 eggc/.code = \def\thing@eggc{#1},
336 egg c/.forward to = /thing/eggc,
337 eggc = red,
338 crozier/.code = \thing@croziertrue
339 \def\thing@crozier{#1},
340 crozier/.default = brown,
341 shovel/.code = \thing@shoveltrue
342 \def\thing@shovel{#1},
343 shovel/.default = gray,
344 pickaxe/.code = \thing@pickaxetrue
345 \def\thing@pickaxe{#1},
346 pickaxe/.default = gray,
347 strawbroom/.code = \thing@strawbroomtrue
348 \def\thing@strawbroom{#1},
349 strawbroom/.default = brown!50!white,
350 strawbroomstick/.code = \def\thing@strawbroomstick{#1},
351 strawbroomstick = brown,
352 strawbroomribbon/.code = \def\thing@strawbroomribbon{#1},
353 strawbroomribbon = red!50!black,
354 broom/.code = \thing@broomtrue
355 \def\thing@broom{#1},
356 broom/.default = brown,
357 broomstick/.code = \def\thing@broomstick{#1},
358 broomstick = gray!50!black,
359 umbrella/.code = \thing@umbrellatrue
360 \def\thing@umbrella{#1},
361 umbrella/.default = cyan,
362 umbrellaclosed/.code = \thing@umbrellaclosedtrue
363 \def\thing@umbrellaclosed{#1},
364 umbrellaclosed/.default = cyan,
365 umbrella closed/.forward to = /thing/umbrellaclosed,
366 handbag/.code = \thing@handbagtrue
367 \def\thing@handbag{#1},
368 handbag/.default = red!70!black,
369 stick/.code = \thing@sticktrue
370 \def\thing@stick{#1},
371 stick/.default = brown!50!black,
372 leaf/.store in = \thing@leaf,
373 leaf = green!70!red,
374 towel/.code = \thing@toweltrue
375 \def\thing@towel{#1},
376 towel/.default = violet,
377 present/.code = \thing@presenttrue
378 \def\thing@present{#1},
379 present/.default = violet,
380 presenttop/.code = \def\thing@presenttop{#1},
381 presenttop = \thing@present!70,
382 present top/.forward to = /thing/presenttop,
383 presentbottom/.code = \def\thing@presentbottom{#1},
384 presentbottom = \thing@present!80,
385 present bottom/.forward to = /thing/presentbottom,
386 presentribbon/.code = \def\thing@presentribbon{#1},
387 presentribbon = \thing@present,
388 present ribbon/.forward to = /thing/presentribbon,
389 }
390
391 \def\thing@draw{%
392 %
393 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
394 %
395 % store the current scale factor
396 % from https://github.com/samcarter/tikzlings/issues/3#issuecomment-461373494
397 %
398 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
399 \pgfgettransformentries{\tmpscaleA}{\tmpscaleB}{\tmpscaleC}{\tmpscaleD}{\tmp}{\tmp}%
400 \pgfmathsetmacro{\scalingfactor}{sqrt(abs(\tmpscaleA*\tmpscaleD-\tmpscaleB*\tmpscaleC))*sqrt(abs((\pgf@xx/1cm)*(\pgf@yy/1cm)-(\pgf@xy/1cm)*(\pgf@yx/1cm)))}%
401 \pgfmathsetmacro{\xscalefactor}{\tmpscaleA}
402 \pgfmathsetmacro{\yscalefactor}{\tmpscaleD}
403 \pgfmathsetmacro{\decoscalefactor}{sign(\tmpscaleA)*sign(\tmpscaleD)*\scalingfactor}%
404 %
405 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
406 %
407 % Hats
408 %
409 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
410 %
411 % Hat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
412 \ifthing@hat
413 \fill[\thing@hat,rotate around={-15:(-0.3,2.01)}] (-0.3,2.01) rectangle (0.46,2.31);
414 \fill[\thing@hat] (0.05,1.92) ellipse[x radius=0.6, y radius=0.1, rotate=-15];
415 \fill[\thing@hat] (0.14,2.2) ellipse[x radius=0.37, y radius=0.08, rotate=-15];
416 \fi
417 %
418 % Tophat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
419 \ifthing@tophat
420 \fill[\thing@tophat] (0.1,1.94) ellipse[x radius=0.48, y radius=0.1, rotate=-15];
421 \fill[\thing@tophat,rotate around={-15:(0.15,2.165)}] (-0.17, 1.94) -- (0.46, 1.94) -- (0.52, 2.39) -- (-0.22, 2.39) -- cycle;
422 \fill[\thing@tophat] (0.21,2.385) ellipse[x radius=0.37, y radius=0.08, rotate=-15];
423 \fi
424 %
425 % Beret %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
426 \ifthing@beret
427 \begin{scope}[xshift=-19,yshift=-2,rotate=10]
428 \fill[\thing@beret,rotate=-25] (0.13,2.15) ellipse[x radius=0.5, y radius=0.17];
429 \fill[\thing@beret,rotate=-25] (0.13,2.25) ellipse[x radius=0.55, y radius=0.17];
430 \fill[\thing@beret,rotate=-25] (0.13,2.4) circle[radius=0.08];
431 \end{scope}
432 \fi
433 %
434 % Straw hat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
435 \ifthing@strawhat
436 \begin{scope}[xshift=-16,rotate=12,yshift=-1]
437 \fill[\thing@strawhat,rotate=-15] (0.44,2.0) ellipse[x radius=0.75, y radius=0.1];
438 \fill[\thing@strawhat,rotate=-15] (0.1,2.05) rectangle (0.78,2.5);
439 \fill[\thing@strawhat,rotate=-15] (0.44,2.5) ellipse[x radius=0.34, y radius=0.08];
440 \fill[\thing@strawhat,rotate=-15] (-0.3,2.02) -- (1.18,2.02) -- (0.78,2.2) -- (0.1,2.2) -- cycle;
441 \fill[\thing@ribbon,rotate=-15] (0.44,2.2) ellipse[x radius=0.34, y radius=0.08];
442 \fill[\thing@ribbon,rotate=-15] (0.1,2.2) rectangle (0.78,2.3);
443 \fill[\thing@strawhat,rotate=-15] (0.44,2.3) ellipse[x radius=0.34, y radius=0.08];
444 \end{scope}
445 \fi
446 %
447 % Harlequin %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
448 \ifthing@harlequin
449 \begin{scope}[xshift=-26]
450 \path (0.19,1.85) rectangle (1.85,2.67);
451 \fill[\thing@harlequin,overlay] (0.6006,1.9719) .. controls (0.7432,1.8954) and (0.9320,1.8698) .. (0.9320,1.8698) -- (1.0404,2.3839) .. controls (0.9223,2.8873) and (0.1755,2.5634) .. (0.3019,2.2958) .. controls (0.5807,2.5024) and (0.7251,2.3376) .. (0.6006,1.9719) -- cycle;
452 \fill[\thing@niuqelrah,overlay] (1.2853,1.8902) .. controls (1.1177,1.8507) and (0.9278,1.8703) .. (0.9278,1.8703) -- (1.0404,2.3839) .. controls (1.3637,2.8347) and (1.9373,2.3532) .. (1.7049,2.1284) .. controls (1.5267,2.3895) and (1.3204,2.2666) .. (1.2853,1.8902) -- cycle;
453 \fill[\thing@harlequin] (1.7,2.07) circle[radius=0.1];
454 \fill[\thing@niuqelrah] (0.3,2.23) circle[radius=0.1];
455 \end{scope}
456 \fi
457 %
458 % witch %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
459 \ifthing@witch
460 \begin{scope}[xshift=-26]
461 \fill[\thing@witch,rotate=-15] (0.44,2.13) ellipse[x radius=0.75, y radius=0.17];
462 \fill[\thing@witch,rotate=-15] (0.05,2.2)--(0.45,3.2)--(0.82,2.2);
463 \end{scope}
464 \fi
465 %
466 % magic hat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
467 \ifthing@magichat
468 \begin{scope}[xshift=-26]
469 \path[preaction={fill, \thing@magichat!100},rotate=-5,pattern=fivepointed stars, pattern color=\thing@magicstars!100] (0.36,1.95)--(0.86,2.95)--(1.20,1.85);
470 \end{scope}
471 \fi
472 %
473 % crown %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
474 \ifthing@crown
475 \fill[\thing@crown] (-0.1885,2.0616) .. controls (-0.1885,2.0616) and (-0.1479,2.1763) .. (-0.2291,2.465) -- (-0.0355,2.2378) -- (0.1141,2.3943) -- (0.201,2.1961) -- (0.4688,2.3318) .. controls (0.2677,2.1132) and (0.2944,1.9764) .. (0.2944, 1.9764) .. controls (0.1524,1.9202) and (-0.0743,1.9601) .. (-0.1885,2.0616) -- cycle;
476 \fi
477 %
478 % Queen crown %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
479 \ifthing@queencrown
480 \begin{scope}[xshift=-26]
481 \fill[\thing@queencrown] (0.7370,2.0732) .. controls (0.6966,2.2091) and (0.6769,2.3503) ..
482 (0.6354,2.4859) .. controls (0.6149,2.5164) and (0.5958,2.5732) ..
483 (0.6498,2.5808) .. controls (0.6973,2.5907) and (0.7091,2.5350) ..
484 (0.6926,2.5016) .. controls (0.6967,2.4544) and (0.7188,2.4109) ..
485 (0.7340,2.3665) .. controls (0.7415,2.3472) and (0.7619,2.2862) ..
486 (0.7676,2.3381) .. controls (0.7755,2.3852) and (0.7871,2.4329) ..
487 (0.7833,2.4808) .. controls (0.7597,2.5148) and (0.7834,2.5720) ..
488 (0.8294,2.5570) .. controls (0.8775,2.5457) and (0.8536,2.4937) ..
489 (0.8436,2.4638) .. controls (0.8502,2.3973) and (0.8640,2.3313) ..
490 (0.8798,2.2664) .. controls (0.9047,2.2750) and (0.9168,2.3261) ..
491 (0.9342,2.3514) .. controls (0.9492,2.3853) and (0.9714,2.4171) ..
492 (0.9773,2.4540) .. controls (0.9645,2.4873) and (0.9766,2.5358) ..
493 (1.0204,2.5303) .. controls (1.0646,2.5298) and (1.0691,2.4725) ..
494 (1.0443,2.4460) .. controls (1.0440,2.3935) and (1.0580,2.3419) ..
495 (1.0671,2.2905) .. controls (1.0706,2.2719) and (1.0788,2.2126) ..
496 (1.0985,2.2554) .. controls (1.1269,2.3087) and (1.1558,2.3623) ..
497 (1.1772,2.4187) .. controls (1.1697,2.4515) and (1.1716,2.5081) ..
498 (1.2210,2.5018) .. controls (1.2706,2.4969) and (1.2686,2.4403) ..
499 (1.2406,2.4126) .. controls (1.2279,2.3600) and (1.2211,2.3057) ..
500 (1.2172,2.2518) .. controls (1.2296,2.2439) and (1.2538,2.2943) ..
501 (1.2693,2.3112) .. controls (1.2908,2.3467) and (1.3228,2.3784) ..
502 (1.3316,2.4200) .. controls (1.3203,2.4624) and (1.3708,2.5014) ..
503 (1.4051,2.4678) .. controls (1.4448,2.4342) and (1.3945,2.3994) ..
504 (1.3765,2.3710) .. controls (1.3022,2.2536) and (1.2440,2.1265) ..
505 (1.1686,2.0097) .. controls (0.9649,1.9465) and (0.8367,1.9955) ..
506 (0.7370,2.0732) -- cycle;
507 \end{scope}
508 \fi
509 %
510 % King crown %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
511 \ifthing@kingcrown
512 \begin{scope}[xshift=-26]
513 \fill[\thing@kingcrown] (0.6572,2.0396) .. controls (0.6637,2.0838) and (0.6716,2.1289) ..
514 (0.6684,2.1735) .. controls (0.6481,2.2496) and (0.5923,2.3131) ..
515 (0.5818,2.3921) .. controls (0.5738,2.4607) and (0.6167,2.5343) ..
516 (0.6862,2.5502) .. controls (0.7548,2.5703) and (0.8210,2.5304) ..
517 (0.8720,2.4881) .. controls (0.8984,2.4712) and (0.9239,2.4324) ..
518 (0.9486,2.4249) .. controls (0.9524,2.4691) and (0.9566,2.5158) ..
519 (0.9844,2.5527) .. controls (1.0052,2.5845) and (1.0390,2.6282) ..
520 (1.0820,2.6127) .. controls (1.1212,2.5899) and (1.1378,2.5421) ..
521 (1.1478,2.5003) .. controls (1.1576,2.4639) and (1.1336,2.4180) ..
522 (1.1349,2.3906) .. controls (1.2050,2.4269) and (1.2847,2.4629) ..
523 (1.3654,2.4429) .. controls (1.4292,2.4285) and (1.4864,2.3679) ..
524 (1.4793,2.2998) .. controls (1.4859,2.2404) and (1.4407,2.1925) ..
525 (1.4006,2.1551) .. controls (1.3681,2.1232) and (1.3290,2.0951) ..
526 (1.3072,2.0544) .. controls (1.2904,2.0121) and (1.2805,1.9674) ..
527 (1.2738,1.9225) .. controls (1.1221,1.8892) and (0.9586,1.8836) ..
528 (0.8112,1.9386) .. controls (0.7535,1.9608) and (0.6999,1.9945) ..
529 (0.6572,2.0396) -- cycle;
530 \end{scope}
531 \fi
532 %
533 % Santa %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
534 \ifthing@santa
535 \begin{scope}[xshift=-26]
536 \fill[\thing@santa] (0.430,1.803) .. controls (0.590,2.174) and (0.837,2.065) .. (1.118,1.954) .. controls (1.679,1.731) and (1.328,1.193) .. (1.647,1.057) .. controls (1.638,1.255) and (1.745,2.104) .. (1.168,2.270) .. controls (0.867,2.356) and (0.536,2.280) .. (0.430,1.803) -- cycle;
537 \fill[white!80!brown] (0.44,1.733) .. controls (0.211,2.299) and (1.082,2.188) .. (1.456,1.759) .. controls (1.534,1.637) and (1.480,1.545) .. (1.400,1.566) .. controls (1.265,1.714) and (0.577,2.267) .. (0.44,1.733) -- cycle;
538 \fill[white!80!brown] (1.6,1.0) circle[radius=0.17];
539 \end{scope}
540 \fi
541 %
542 % Chef hat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
543 \ifthing@chef
544 \begin{scope}[xshift=-26]
545 \fill[\thing@chef,rotate=-15] (0.44,2.1) ellipse[x radius=0.37, y radius=0.08];
546 \fill[\thing@chef,rotate=-15] (0.07,2.1) rectangle (0.81,2.55);
547 \fill[\thing@chef] (1.01,2.47) circle[radius=0.17];
548 \fill[\thing@chef] (1.24,2.35) circle[radius=0.15];
549 \fill[\thing@chef] (0.77,2.40) circle[radius=0.12];
550 \fill[\thing@chef] (1.39,2.20) circle[radius=0.12];
551 \end{scope}
552 \fi
553 %
554 % graduate hat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
555 \ifthing@graduate
556 \begin{scope}[xshift=-26]
557 \fill[\thing@graduate,rotate=-15] (0.44,2.1) ellipse[x radius=0.37, y radius=0.1];
558 \fill[\thing@graduate,rotate=-15] (0.07,2.1) rectangle (0.81,2.3);
559 \fill[\thing@graduate] (0.3,2.25) -- (1.05,2.35) -- (1.7,1.95) -- (0.92,1.85) -- cycle;
560 \fill[\thing@tassel,rounded corners=\scalingfactor*1] (1.12,1.89) -- (1.01,2.1) -- (1.09,2.11) -- (1.2,1.9) -- (1.2,1.3) -- (1.12,1.3) -- cycle;
561 \fill[\thing@tassel] (1.16,1.3) ellipse[x radius=0.06, y radius=0.12];
562 \end{scope}
563 \fi
564 %
565 % sombrero %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
566 \ifthing@sombrero
567 \fill[\thing@sombrero] (-.45,2) to[in=200] (0,2.8) to[out=-20] (.45,2) -- cycle;
568 \fill[\thing@sombrero] (-0.65, 1.75) .. controls (-0.85, 1.7) and (-0.85, 1.9) .. (-0.85, 1.9) .. controls (-0.30, 2.2) and (0.30, 2.2) .. ( 0.85, 1.9) .. controls ( 0.85, 1.9) and (0.85, 1.7) .. ( 0.65, 1.75) .. controls ( 0.30, 1.95) and (-0.30, 1.95) .. (-0.65, 1.75) -- cycle;
569 \draw[\thing@sombrerob,line width=\scalingfactor*0.8pt] (-0.85, 1.9) .. controls (-0.30, 2.2) and (0.30, 2.2) .. ( 0.85, 1.9);
570 \draw[decorate,decoration={zigzag, amplitude=\decoscalefactor*1pt, segment length=\scalingfactor*6pt},\thing@sombreroa, line width=\scalingfactor*1pt] (-0.81, 1.8) .. controls (-0.30, 2.1) and (0.30, 2.1) .. ( 0.82, 1.8);
571 \begin{scope}
572 \clip (-.45,2) to[in=200] (0,2.8) to[out=-20] (.45,2) -- cycle;
573 \draw[decorate,decoration={zigzag, amplitude=\decoscalefactor*1pt, segment length=\scalingfactor*3pt},\thing@sombreroa, line width=\scalingfactor*1pt] (-.4,2.4) to[bend left] (.4,2.4);
574 \fill[decorate,decoration={shape backgrounds,shape=circle, shape size=\scalingfactor*2pt, shape evenly spread=7}, \thing@sombreroc] (-.3,2.6) to[bend left] (.3,2.6);
575 \fill[decorate,decoration={shape backgrounds,shape=circle,shape size=\scalingfactor*2pt,shape evenly spread=9},\thing@sombreroc] (-.4,2.18) to[bend left] (.4,2.18);
576 \end{scope}
577 \fi
578 %
579 % alien %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
580 \ifthing@alien
581 \fill[\thing@alien,rotate around={15:(-0.175,2.115)}] (-0.2,1.93) rectangle (-0.15,2.3);
582 \fill[\thing@alien,rotate around={-15:(0.175,2.115)}] (0.2,1.93) rectangle (0.15,2.3);
583 \fill[\thing@alien] (-0.22,2.30) circle[radius=0.07];
584 \fill[\thing@alien] (0.22,2.30) circle[radius=0.07];
585 \fi
586 %
587 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
588 %
589 % Communication
590 %
591 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
592 %
593 % book %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
594 \ifthing@book
595 \begin{scope}[xshift=-25,yshift=1]
596 \fill[\thing@bookcolour,rotate=-20] (0.40,1.20) rectangle (0.80,0.60);
597 \node[rotate=-20*\yscalefactor/\xscalefactor, color=white] at (0.88,0.70) {\thing@book};%
598 \end{scope}
599 \fi
600 %
601 % signpost %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
602 \ifthing@signpost
603 \begin{scope}[scale=1.7,xshift=-26,yshift=-7]
604 \fill[\thing@signcolour, rounded corners=\scalingfactor*1, rotate=-20] (0.8,0.75) rectangle (0.9,1.75);
605 \fill[\thing@signcolour, rounded corners=\scalingfactor*1, rotate=-20] (0.4,1.7) rectangle (1.3,2.4);
606 \fill[\thing@signback, rounded corners=\scalingfactor*1, rotate=-20] (0.45,1.75) rectangle (1.25,2.35);
607 \node[rotate=-20*\yscalefactor/\xscalefactor, color=white] at (1.5,1.65) {\thing@signpost};
608 \end{scope}
609 \fi
610 %
611 % speech bubble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
612 \ifthing@speech
613 \begin{scope}[xshift=-26]
614 \fill[\thing@bubblecolour] (-0.5,1.8) ellipse[x radius=0.7, y radius=0.3];
615 \fill[\thing@bubblecolour] (-0.2,1.54) -- (0.2,1.35) -- (0.0,1.6) -- cycle;
616 \node at (-0.5,1.8) {\thing@speech};
617 \end{scope}
618 \fi
619 %
620 % think bubble %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
621 \ifthing@think
622 \begin{scope}[xshift=-26]
623 \fill[\thing@bubblecolour] (2,2.4) ellipse[x radius=0.7, y radius=0.35];
624 \fill[\thing@bubblecolour] (1.55,2.35) circle[radius=0.25] (2.0,2.15) circle[radius=0.25] (2.4,2.25) circle[radius=0.25] (1.6,2.55) circle[radius=0.25] (2.0,2.6) circle[radius=0.25] (2.35,2.5) circle[radius=0.25] (1.65,1.95) circle[radius=0.1] (1.55,1.80) circle[radius=0.06] (1.47,1.70) circle[radius=0.03];
625 \node at (2,2.4) {\thing@think};
626 \end{scope}
627 \fi
628 %
629 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
630 %
631 % Food
632 %
633 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
634 %
635 % pizza %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
636 \ifthing@pizza
637 \begin{scope}[xshift=-28,yshift=2]
638 \fill[brown] (1.00,0.60) ellipse[x radius=0.4, y radius=0.2];
639 \fill[red!70!black] (1.00,0.60) ellipse[x radius=0.34, y radius=0.16];
640 \fill[white!85!yellow] (1.15,0.65) ellipse[x radius=0.065, y radius=0.04];
641 \fill[white!85!yellow] (0.81,0.57) ellipse[x radius=0.065, y radius=0.04];
642 \fill[white!85!yellow] (0.95,0.68) ellipse[x radius=0.065, y radius=0.04];
643 \fill[white!85!yellow] (1.02,0.54) ellipse[x radius=0.065, y radius=0.04];
644 \fill[green!40!brown] (1.09,0.54) ellipse[x radius=0.07, y radius=0.02];
645 \fill[green!40!brown,rotate=20] (1.0,0.34) ellipse[x radius=0.07, y radius=0.02];
646 \fill[green!40!brown,rotate=-20] (0.9,1.05) ellipse[x radius=0.07, y radius=0.02];
647 \fill[green!40!brown] (1.00,0.60) ellipse[x radius=0.03, y radius=0.06];
648 \end{scope}
649 \fi
650 % not pizza %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
651 \ifthing@davidlikespineapplepizza
652 \begin{scope}[xshift=-28,yshift=2]
653 \fill[brown] (1.00,0.60) ellipse[x radius=0.4, y radius=0.2];
654 \fill[red!70!black] (1.00,0.60) ellipse[x radius=0.34, y radius=0.16];
655 \fill[yellow!70!brown] (1.15,0.65) ellipse[x radius=0.08, y radius=0.06];
656 \fill[red!70!black] (1.15,0.65) ellipse[x radius=0.04, y radius=0.03];
657 \fill[yellow!70!brown] (0.81,0.57) ellipse[x radius=0.08, y radius=0.06];
658 \fill[red!70!black] (0.81,0.57) ellipse[x radius=0.04, y radius=0.03];
659 \fill[yellow!70!brown] (0.95,0.68) ellipse[x radius=0.08, y radius=0.06];
660 \fill[red!70!black] (0.95,0.68) ellipse[x radius=0.04, y radius=0.03];
661 \fill[yellow!70!brown] (1.02,0.54) ellipse[x radius=0.08, y radius=0.06];
662 \fill[red!70!black] (1.02,0.54) ellipse[x radius=0.04, y radius=0.03];
663 \fill[green!40!brown] (1.09,0.54) ellipse[x radius=0.07, y radius=0.02];
664 \fill[green!40!brown,rotate=20] (1.0,0.34) ellipse[x radius=0.07, y radius=0.02];
665 \fill[green!40!brown,rotate=-20] (0.9,1.05) ellipse[x radius=0.07, y radius=0.02];
666 \fill[green!40!brown] (1.00,0.60) ellipse[x radius=0.03, y radius=0.06];
667 \end{scope}
668 \fi
669 %
670 % Cheese %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
671 \ifthing@cheese
672 \fill[\thing@cheese] (-0.3200,0.8058) -- (0.0608,0.7220) -- (0.0608,0.6366) -- (-0.3200,0.5410) -- (0.2143,0.4236) .. controls (0.3395,0.4810) and (0.4241,0.5627) .. (0.4117,0.6253) -- (0.4117,0.7634) .. controls (0.4261,0.8618) and (0.2607,0.8954) .. (0.1907,0.8962) -- cycle;
673 \fill[\thing@cheese!35!white] (-0.3200,0.8057) -- (-0.3200,0.5410) -- (0.2143,0.4236) -- (0.2143,0.7381) -- cycle;
674 \fill[\thing@cheese] (-0.23,0.71) circle[radius=0.04] (0.0,0.55) circle[radius=0.04] (-0.23,0.58) circle[radius=0.02] (-0.15,0.6) circle[radius=0.02] (-0.1,0.7) circle[radius=0.02] (0.1,0.65) circle[radius=0.02] (0,0.65) circle[radius=0.02] (0.1,0.5) circle[radius=0.02] (0.07,0.55) circle[radius=0.01] (0.12,0.6) circle[radius=0.01] (-0.08,0.54) circle[radius=0.01];
675 \fi
676 %
677 % baguette %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
678 \ifthing@baguette
679 \begin{scope}[xshift=-38,yshift=7,rotate=-20]
680 \fill[\thing@baguette!70!white, rounded corners=\scalingfactor*4, rotate=-30] (0.4,0.72) rectangle (0.7,2.0);
681 \fill[\thing@baguette!80!black, rotate=5] (1.44,1.1) ellipse[x radius=0.1, y radius=0.03] (1.30,0.9) ellipse[x radius=0.1, y radius=0.03] (1.16,0.7) ellipse[x radius=0.1, y radius=0.03] (1.02,0.5) ellipse[x radius=0.1, y radius=0.03];
682 \end{scope}
683 \fi
684 %
685 % cake %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
686 \ifthing@cake
687 \begin{scope}[xshift=-28]
688 \fill[\thing@cake] (1.00,0.50) ellipse[x radius=0.4, y radius=0.2];
689 \fill[\thing@cake] (0.6,0.5) rectangle (1.4,0.7);
690 \fill[\thing@cake] (1.00,0.70) ellipse[x radius=0.4, y radius=0.2];
691 \fill[\thing@cake!50!white] (0.75,0.75) rectangle (0.8,0.95);
692 \fill[\thing@cake!50!white] (1.2,0.75) rectangle (1.25,0.95);
693 \fill[\thing@cake!50!white] (0.975,0.65) rectangle (1.025,0.85);
694 \fill[white!85!yellow] (1.0,0.93) ellipse[x radius=0.03, y radius=0.06];
695 \fill[white!85!yellow] (1.225,1.03) ellipse[x radius=0.03, y radius=0.06];
696 \fill[white!85!yellow] (0.775,1.03) ellipse[x radius=0.03, y radius=0.06];
697 \end{scope}
698 \fi
699 %
700 % icecream %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
701 \ifthing@icecream
702 \begin{scope}[xshift=-26]
703 \fill[\thing@cone,rotate=-20] (0.35,1.20)--(0.50,0.60)--(0.75,1.20);
704 \fill[\thing@flavoura] (0.85,1.03) circle[radius=0.12];
705 \fill[\thing@flavourb] (1.05,0.95) circle[radius=0.12];
706 \fill[\thing@flavourc] (0.95,1.1) circle[radius=0.12];
707 \end{scope}
708 \fi
709 %
710 % milkshake %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
711 \ifthing@milkshake
712 \begin{scope}[xshift=-26]
713 \fill[cyan!10!white, rotate=-10] (0.8,0.50) ellipse[x radius=0.17, y radius=0.05];
714 \fill[cyan!10!white, rotate=-10] (0.8,0.55) ellipse[x radius=0.12, y radius=0.03];
715 \begin{scope}
716 \clip[rotate=-10] (0.58,0.5) rectangle (1.02,1.03);
717 \fill[cyan!10!white, rotate=-10] (0.8,0.94) ellipse[x radius=0.18, y radius=0.4];
718 \fill[\thing@milkshake, rotate=-10] (0.8,0.94) ellipse[x radius=0.15, y radius=0.36];
719 \end{scope}
720 \fill[white!85!yellow] (0.83,0.92) circle[radius=0.05] (0.88,0.9) circle[radius=0.05] (0.93,0.92) circle[radius=0.05] (0.99,0.91) circle[radius=0.05] (1.06,0.86) circle[radius=0.05] (1.13,0.87) circle[radius=0.05] (0.85,0.99) circle[radius=0.05] (0.9,0.98) circle[radius=0.07] (1.0,0.98) circle[radius=0.07] (1.1,0.95) circle[radius=0.07];
721 \fill[red!90!black] (1.0,1.1) circle[radius=0.05];
722 \fill[white!85!yellow] (0.94,1.05) circle[radius=0.05] (1.03,1.03) circle[radius=0.05];
723 \fill[cyan!10!white, rotate=-10] (0.8,0.50) ellipse[x radius=0.17, y radius=0.05];
724 \fill[red!90!black,rotate=20] (1.2,0.58) rectangle (1.22,0.85);
725 \end{scope}
726 \fi
727 %
728 % wine %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
729 \ifthing@wine
730 \begin{scope}[xshift=-26,yshift=2]
731 \fill[cyan!10!white, rotate=-10] (0.8,0.50) ellipse[x radius=0.17, y radius=0.05];
732 \fill[cyan!10!white, rotate=-10] (0.8,0.55) ellipse[x radius=0.12, y radius=0.03];
733 \fill[cyan!10!white, rotate=-10] (0.8,0.7) ellipse[x radius=0.03, y radius=0.2];
734 \begin{scope}
735 \clip[rotate=-10] (0.58,0.5) rectangle (1.02,1.03);
736 \fill[cyan!10!white, rotate=-10] (0.8,1.1) ellipse[x radius=0.18, y radius=0.4];
737 \end{scope}
738 \begin{scope}
739 \clip[rotate=-10] (0.58,0.5) rectangle (1.02,0.87);
740 \fill[\thing@wine, rotate=-10] (0.8,1.1) ellipse[x radius=0.15, y radius=0.36];
741 \end{scope}
742 \end{scope}
743 \fi
744 %
745 % cocktail %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
746 \ifthing@cocktail
747 \begin{scope}[xshift=-26,yshift=3]
748 \fill[cyan!10!white, rotate=-10] (0.8,0.50) ellipse[x radius=0.17, y radius=0.05];
749 \fill[cyan!10!white, rotate=-10] (0.8,0.55) ellipse[x radius=0.12, y radius=0.03];
750 \fill[cyan!10!white, rotate=-10] (0.8,0.7) ellipse[x radius=0.03, y radius=0.2];
751 \fill[cyan!10!white] (0.92,0.6) -- (0.75,0.9) -- (1.18,0.83) -- cycle;
752 \fill[gray!60!white] (0.928,0.64) -- (0.85,0.77) -- (1.08,0.77) -- cycle;
753 \fill[green!40!brown!60!white] (0.94,0.71) circle[radius=0.04];
754 \fill[red!80!black] (0.94,0.72) circle[radius=0.01];
755 \end{scope}
756 \fi
757 %
758 % banana %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
759 \ifthing@banana
760 \begin{scope}[yshift=27, xshift=7,rotate=25]
761 \fill[\thing@banana!30!] (0.02,0) .. controls (0.21,0.20) and (0.21,0.40) .. (0.02,0.6) arc [start angle=60,end angle=120, radius =0.04] .. controls (0.07,0.40) and (0.07,0.20) .. (-0.02,0) --cycle ;
762 %peel
763 \begin{scope}
764 \clip (-0.04,-0.01) rectangle (0.20,0.3);
765 \fill[\thing@banana] (0.03,0) .. controls (0.22,0.20) and (0.22,0.40) .. (0.03,0.6) arc [start angle=60,end angle=120, radius =0.06] .. controls (0.06,0.40) and (0.06,0.20) .. (-0.03,0);
766 \end{scope}
767 \fill[\thing@banana!60!] (0.12,0.3) arc [start angle=140, end angle=-100, y radius=0.20, x radius=0.06] arc [start angle=-90, end angle=90, y radius=0.15, x radius=0.02] (0.12,0.3) arc [start angle=60, end angle=270, y radius=0.15, x radius=0.1] arc [start angle=270, end angle=90, y radius=0.13, x radius=0.04];
768 \end{scope}
769 \fi
770 %
771 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
772 %
773 % Sport
774 %
775 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
776 %
777 % cricket bat %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
778 \ifthing@cricket
779 \begin{scope}[xshift=-26]
780 \fill[\thing@cricket, rounded corners=\scalingfactor*2, rotate=-30] (0.4,1.2) rectangle (0.7,2.2);
781 \fill[\thing@cricket, rounded corners=\scalingfactor*1, rotate=-30] (0.5,0.8) rectangle (0.6,1.3);
782 \end{scope}
783 \fi
784 %
785 % Hockey stick %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
786 \ifthing@hockey
787 \begin{scope}[xshift=-22]
788 \fill[\thing@hockey, rounded corners=\scalingfactor*1, rotate=-30] (0.5,0.6) rectangle (0.6,2.1);
789 \fill[\thing@hockey, rounded corners=\scalingfactor*3] (0.2,0.2) rectangle (0.85,0.4);
790 \end{scope}
791 \fi
792 %
793 % football %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
794 \ifthing@football
795 \begin{scope}[xshift=-26]
796 \fill[\thing@football] (1.2,0.33) circle[radius=0.32];
797 \begin{scope}
798 \clip (1.2,0.33) circle[radius=0.32];
799 \fill[black] (1.06,0.30) -- (1.01,0.17) -- (1.14,0.08) -- (1.26,0.14) -- (1.20,0.28) -- cycle (1.37,0.14) -- (1.46,0.27) -- (1.59,0.27) -- (1.41,0.04) -- cycle (1.28,0.38) -- (1.22,0.52) -- (1.33,0.61) -- (1.45,0.51) -- (1.43,0.37) -- cycle (0.87,0.44) -- (1.02,0.40) -- (1.10,0.53) -- (1.07,0.62) -- (0.94,0.57) -- cycle;
800 \end{scope}
801 \end{scope}
802 \fi
803 %
804 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
805 %
806 % other items
807 %
808 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
809 %
810 % crystal ball %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
811 \ifthing@crystalball
812 \shade[ball color=\thing@crystalball,opacity=0.7] (0,0.8) circle[radius=0.33];
813 \fi
814 %
815 % magic wand %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
816 \ifthing@magicwand
817 \begin{scope}[xshift=-16,yshift=2]
818 \fill[black,rotate=-30] (0.27,1.23) rectangle (0.37,0.65);
819 \fill[white,rotate=-30] (0.27,1.13) rectangle (0.37,1.03);
820 \end{scope}
821 \fi
822 %
823 % rollingpin %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
824 \ifthing@rollingpin
825 \begin{scope}[xshift=-30,yshift=2]
826 \fill[\thing@rollingpin, rounded corners=\scalingfactor*2, rotate=-60] (-0.18,0.85) rectangle (0.08,1.75);
827 \fill[\thing@rollingpin, rounded corners=\scalingfactor*1, rotate=-60] (-0.1,0.65) rectangle (0.0,1.95);
828 \end{scope}
829 \fi
830 %
831 % lightsaber %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
832 \ifthing@lightsaber
833 \begin{scope}[xshift=-26]
834 \fill[\thing@lightsaber, rounded corners=\scalingfactor*1, rotate=-30] (0.5,0.9) rectangle (0.6,2.5);
835 \fill[gray!80!black, rounded corners=\scalingfactor*1, rotate=-30] (0.47,0.7) rectangle (0.63,1.2);
836 \end{scope}
837 \fi
838 %
839 % torch %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
840 \ifthing@torch
841 \begin{scope}[xshift=-26]
842 \fill[red!50!yellow] (1.4338,1.025) .. controls (1.4308,0.8877) and (1.3468,0.8997) .. (1.2447,0.748) .. controls (1.1427,0.8982) and (1.0721,0.8892) .. (1.0646,1.024) .. controls (1.0541,1.1714) and (1.2642,1.1654) .. (1.2492,1.386) .. controls (1.3093,1.3110) and (1.4383,1.2705) .. (1.4338,1.025) -- cycle;
843 \fill[red!25!yellow, scale=0.67, xshift=17, yshift=15] (1.4338,1.025) .. controls (1.4308,0.8877) and (1.3468,0.8997) .. (1.2447,0.748) .. controls (1.1427,0.8982) and (1.0721,0.8892) .. (1.0646,1.024) .. controls (1.0541,1.1714) and (1.2642,1.1654) .. (1.2492,1.386) .. controls (1.3093,1.3110) and (1.4383,1.2705) .. (1.4338,1.025) -- cycle;
844 \fill[white!50!yellow, scale=0.4, xshift=53.5, yshift=45.3] (1.4338,1.025) .. controls (1.4308,0.8877) and (1.3468,0.8997) .. (1.2447,0.748) .. controls (1.1427,0.8982) and (1.0721,0.8892) .. (1.0646,1.024) .. controls (1.0541,1.1714) and (1.2642,1.1654) .. (1.2492,1.386) .. controls (1.3093,1.3110) and (1.4383,1.2705) .. (1.4338,1.025) -- cycle;
845 \fill[\thing@torch,rounded corners=\scalingfactor*1]
846 (1.1,0.96) -- (0.77,0.25) -- (0.83,0.25) -- (1.3,0.86) -- cycle;
847 \fill[\thing@torch,rotate=-28] (0.62,1.32) ellipse[x radius=0.2, y radius=0.08];
848 \end{scope}
849 \fi%
850 %
851 % basket %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
852 \ifthing@basket
853 \begin{scope}[xshift=-28.5]
854 \fill[\thing@basket, start angle=180, end angle=360, x radius=0.35, y radius=0.35] (0.65,0.61) arc -- cycle;
855 \fill[\thing@basket, start angle=180, end angle=0, even odd rule] [x radius=0.35, y radius=0.5] (0.65,0.6) arc -- cycle [x radius=0.3, y radius=0.45] (0.7,0.6) arc -- cycle;
856 \fill[\thing@basket, even odd rule] (1,0.6) ellipse[x radius=0.35, y radius=0.1] (1,0.6) ellipse[x radius=0.3, y radius=0.07];
857 \fill[\thing@basket!75!black] (1,0.6) ellipse[x radius=0.3, y radius=0.07];
858 \end{scope}
859 \fi%
860 %
861 % easter basket %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
862 \ifthing@easter
863 \begin{scope}[xshift=-28.5]
864 \begin{scope}
865 \clip [start angle=180, end angle=0, x radius=0.3, y radius=0.45] (0.7,0.6) arc -- cycle [start angle=180, end angle=360, x radius=0.3, y radius=0.07] (0.7,0.6) arc -- cycle;
866 \fill[\thing@eggb, rotate=-5] (0.95,0.72) ellipse[x radius=0.09, y radius=0.13];
867 \fill[\thing@egga, rotate=10] (0.94,0.42) ellipse[x radius=0.09, y radius=0.13];
868 \fill[\thing@eggc, rotate=-30] (0.7,1.08) ellipse[x radius=0.09, y radius=0.13];
869 \end{scope}
870 \end{scope}
871 \fi%
872 %
873 % crozier %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
874 \ifthing@crozier
875 \begin{scope}[xshift=-20]
876 \begin{scope}
877 \clip [rotate=-20] (0.6,2.3) rectangle (1.1,1.999);
878 \fill[even odd rule,\thing@crozier] (1.5,1.6) circle[radius=0.2] (1.5,1.6) circle[radius=0.1];
879 \end{scope}
880 \fill[\thing@crozier,rotate=-20] (0.663,0.5) rectangle (0.763,2.0);
881 \end{scope}
882 \fi
883 %
884 % shovel %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
885 \ifthing@shovel
886 \fill[brown!80!black,rotate around={-23:(0.11, 0.8)}] (0.07,0.2) rectangle ++(0.1,1.4);
887 \fill[\thing@shovel] (-0.21, 0.86) .. controls (0.02, 0.72) and (0.11, 0.66) .. (0.38, 0.58) -- (0.01, 0.04) .. controls (-0.17, 0.02) and (-0.28, 0.07) .. (-0.37, 0.21) -- cycle;
888 \fi
889 %
890 % pickaxe %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
891 \ifthing@pickaxe
892 \fill[brown!80!black,rotate around={-23:(0.11, 0.8)}] (0.07,0.2) rectangle ++(0.1,1.4);
893 \fill[\thing@pickaxe] (-0.77, 0.57) .. controls (-0.14, 0.25) and (-0.02, 0.21) .. (0.60, 0.02) .. controls (-0.12, 0.03) and (-0.22, 0.10) .. (-0.77, 0.57) -- cycle;
894 \fi
895 %
896 % strawbroom %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
897 \ifthing@strawbroom
898 \begin{scope}[xshift=-24]
899 \fill[\thing@strawbroomstick] (0.9160,0.5478) -- (1.2792,1.6574) .. controls (1.3063,1.6961) and (1.3956,1.6649) .. (1.3688,1.6176) -- (0.9508,0.5179) .. controls (0.9360,0.5142) and (0.9202,0.5331) .. (0.9160,0.5478) -- cycle;
900 \fill[\thing@strawbroom] (0.5528,0.2890) .. controls (0.6449,0.3598) and (0.7460,0.5693) .. (0.8911,0.6871) .. controls (0.9481,0.7215) and (1.0395,0.6925) .. (1.0553,0.6224) .. controls (1.1219,0.4385) and (0.9965,0.2147) .. (1.0056,0.1000) .. controls (0.8926,0.0241) and (0.5950,0.2078) .. (0.5528,0.2890) -- cycle;
901 \draw[\thing@strawbroomribbon,line width=\scalingfactor*0.4pt] (0.7916,0.5876) .. controls (0.7916,0.5876) and (0.8210,0.5404) .. (0.8451,0.5304) .. controls (0.8708,0.5197) and (0.9021,0.5419) .. (0.9284,0.5329) .. controls (0.9544,0.5240) and (0.9663,0.4903) .. (0.9919,0.4806) .. controls (1.0148,0.4720) and (1.0653,0.4781) .. (1.0653,0.4781);
902 \draw[\thing@strawbroomribbon,line width=\scalingfactor*0.4pt] (0.7565,0.5493) .. controls (0.7565,0.5493) and (0.7897,0.4961) .. (0.8169,0.4848) .. controls (0.8458,0.4727) and (0.8812,0.4978) .. (0.9109,0.4876) .. controls (0.9401,0.4776) and (0.9535,0.4396) .. (0.9824,0.4287) .. controls (1.0083,0.4189) and (1.0652,0.4259) .. (1.0652,0.4259);
903 \end{scope}
904 \fi
905 %
906 % broom %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
907 \ifthing@broom
908 \begin{scope}[rotate=-10,xshift=-23,yshift=-4]
909 \draw[\thing@broomstick,line width=\scalingfactor*1.8pt] (0.9, 1.8) -- ++(0,-1.4);
910 \draw[\thing@broomstick,line width=\scalingfactor*1.8pt] (0.6, 0.42) -- ++(0.6,0);
911 \fill[\thing@broom] (0.6, 0.40) -- ++(-0.05,-0.1) -- ++(0.7,0) -- ++(-0.05, 0.1) -- cycle;
912 \end{scope}
913 \fi
914 %
915 % umbrella %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
916 \ifthing@umbrella
917 \path (-0.8, 0.4) rectangle (1.2200000000000002, 2.7);
918 \begin{pgfinterruptboundingbox}
919 \fill[gray] (-0.3078, 0.5942) -- (-0.2574, 0.6103) .. controls (-0.1724, 0.3884) and (-0.1145, 0.4523) .. (-0.0667, 0.6543) -- (-0.0666, 0.6545) -- (-0.0665, 0.6547) .. controls (0.0347, 1.0671) and (0.2906, 1.9565) .. (0.2906, 1.9565) -- (0.3415, 1.9419) .. controls (0.3415, 1.9419) and (0.0855, 1.0519) .. (-0.0151, 0.6423) -- (-0.0152, 0.642) .. controls (-0.076, 0.3633) and (-0.2126, 0.3312) .. (-0.3078, 0.5942) -- cycle;
920 \fill[\thing@umbrella] (-0.7815, 1.9927) .. controls (-0.6441, 2.1962) and (-0.3163, 2.072) .. (-0.3239, 1.824) .. controls (-0.1602, 2.0111) and (0.1891, 1.9216) .. (0.1685, 1.6915) .. controls (0.3000, 1.8765) and (0.6639, 1.7626) .. (0.6607, 1.5356) .. controls (0.7865, 1.7271) and (1.135, 1.695) .. (1.1626, 1.4589) .. controls (1.4996, 2.5771) and (-0.4356, 3.2631) .. (-0.7815, 1.9927) -- cycle;
921 \end{pgfinterruptboundingbox}
922 \fi
923 %
924 % closed umbrella %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
925 \ifthing@umbrellaclosed
926 \fill[gray] (0.5401, 0.7996) -- (0.4872, 0.8019) .. controls (0.484, 1.0395) and (0.4076, 0.9995) .. (0.293, 0.8264) -- (0.2929, 0.8262) -- (0.2928, 0.8261) .. controls (0.0555, 0.4739) and (0.1223, 0.5608) .. (0.1223, 0.5608) -- (0.0795, 0.592) .. controls (0.0795, 0.592) and (0.0131, 0.5057) .. (0.2488, 0.8554) -- (0.2489, 0.8556) .. controls (0.4022, 1.0963) and (0.5414, 1.0793) .. (0.5401, 0.7996) -- cycle;
927 \fill[\thing@umbrellaclosed] (-0.1173, 0.2263) -- (0.0038, 0.7188) -- (0.1548, 0.7494) -- (0.152, 0.9231) -- (0.3945, 0.7529) -- (0.2218, 0.6885) -- (0.2465, 0.5566) -- cycle;
928 \fi
929 %
930 % handbag %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
931 \ifthing@handbag
932 \fill[\thing@handbag] (0.5189, 0.1751) -- (-0.1913, 0.3097) -- (-0.0315, 0.7086) -- (0.5168, 0.6152) -- cycle;
933 \fill[\thing@handbag!70!black] (0.4143, 0.4354) .. controls (0.5139, 0.9811) and (0.1204, 1.0719) .. (0.0134, 0.5155) -- (0.0957, 0.4996) .. controls (0.1753, 0.8952) and (0.3949, 0.8883) .. (0.3324, 0.4536) -- cycle;
934 \fi
935 %
936 % stick %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
937 \ifthing@stick
938 \begin{scope}[rotate=-30,yshift=26,xshift=-7]
939 %leaf
940 \begin{scope}[rotate=60, xshift=8.2,yshift=8.1]
941 \fill[\thing@leaf] (-0.01,0) .. controls (-0.1,0) and (-0.02, 0.2) .. (0,0.2) .. controls (0.02, 0.2) and (0.1,0) .. (0.01,0.0);
942 \path[clip] (-0.04,-0.04)-- (-0.01,0) .. controls (-0.1,0) and (-0.02, 0.2) .. (0,0.2) .. controls (0.02, 0.2) and (0.1,0) .. (0.01,0)-- (0.04,-0.04) --cycle;
943 \draw[\thing@leaf!80!, line width=0.1] (0,-0.04) -- (0,0.2) \foreach \i in {0.02,0.04,...,0.2} {(0,\i) -- ++(0.1,\i) (0,\i) -- ++(-0.1,\i)} ;
944 \end{scope}
945 %stick itself
946 \fill[\thing@stick!90!red] (-0.04,0.8) -- (-0.04,0.4) arc[start angle=345,end angle=270,radius=0.03] -- ++(0,-0.01) arc[start angle=90,end angle=15,radius=0.03] -- (-0.04,0) arc [start angle=180, end angle=360 ,x radius=0.04, y radius=0.02] -- (0.04, 0.4) arc [start angle=180, end angle=120, radius=0.08] arc [start angle=-90, end angle=90, x radius=0.02, y radius=0.04] arc [start angle=240, end angle=180, radius=0.08] -- (0.04,0.75) arc [start angle=0, end angle=120 ,x radius=0.04, y radius=0.02] --cycle;
947 \fill[\thing@stick!90!] (0.08, 0.51) ellipse [x radius=0.02, y radius=0.04] (0,0.75) ellipse [x radius=0.04, y radius=0.02] ;
948 \draw[\thing@stick!90!red, line width=0.06] (0.08, 0.51) ellipse [x radius=0.016, y radius=0.032]
949 ellipse [x radius=0.012, y radius=0.024] ellipse [x radius=0.008, y radius=0.016] (0,0.75) ellipse [y radius=0.016, x radius=0.032] ellipse [y radius=0.012, x radius=0.024] ellipse [y radius=0.008, x radius=0.016] ;
950 \fill[\thing@stick!90!red] (0.08, 0.51) ellipse [x radius=0.004, y radius=0.008] (0,0.75) ellipse [x radius=0.008, y radius=0.004];
951 \end{scope}
952 \fi
953 %
954 % towel %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
955 \ifthing@towel
956 \begin{scope}[xshift=-26]
957 \fill[\thing@towel] (0.6457, 0.9482).. controls (0.6509, 1.028) and (1.3581, 1.0564) .. (1.3736, 0.9841).. controls (1.4459, 0.6474) and (1.3166, 0.8398) .. (1.4272, 0.3739).. controls (1.3567, 0.243) and (1.2095, 0.2817) .. (1.0938, 0.2664).. controls (0.9612, 0.2488) and (0.9142, 0.1883) .. (0.693, 0.286).. controls (0.7014, 0.7758) and (0.6221, 0.5838) .. (0.6457, 0.9482) -- cycle;
958 \end{scope}
959 \fi
960 %
961 % present %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
962 \ifthing@present
963 \fill[\thing@presentbottom] (-0.3, 0.35) rectangle (0.3, 0.9);
964 \fill[\thing@presenttop] (-0.32, 0.75) rectangle (0.32, 0.95);
965 \fill[\thing@presentribbon] (-0.05, 0.35) rectangle (0.05, 0.95);
966 \draw[\thing@presentribbon,line width=\scalingfactor*0.8pt, in=0, out=40,loop,min distance=12] (0, 0.95) to (0, 0.95);
967 \draw[\thing@presentribbon,line width=\scalingfactor*0.8pt, in=40, out=80,loop,min distance=12] (0, 0.95) to (0, 0.95);
968 \draw[\thing@presentribbon,line width=\scalingfactor*0.8pt,in=100, out=140,loop,min distance=12] (0, 0.95) to (0, 0.95);
969 \draw[\thing@presentribbon,line width=\scalingfactor*0.8pt,in=140, out=180,loop,min distance=12] (0, 0.95) to (0, 0.95);
970 \fi
971 }
972
973 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
974 %
975 % Random items
976 %
977 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
978
979 \pgfmathdeclarerandomlist{head}{\thing@listhead}
980 \pgfmathdeclarerandomlist{accessories}{\thing@listacces}
981
982 \def\shufflethings{%
983 \pgfmathrandomitem{\head}{head}%
984 \edef\randomhead{\head}%
985 \pgfmathrandomitem{\accessories}{accessories}%
986 \edef\randomaccessories{\accessories}%
987 }