Debian Codegraph @

texmf-dist/doc/latex/tikzlings/tikzlings-doc.tex

raw
1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2 %
3 % Documentation for the tikzlings package
4 % A package to bring cute little animals and other beings into tikz
5 % Maintained by samcarter
6 %
7 % Project repository and bug tracker:
8 % https://github.com/samcarter/tikzlings
9 %
10 % Released under the LaTeX Project Public License v1.3c or later
11 % See https://www.latex-project.org/lppl.txt
12 %
13 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
14 % arara: latexmk
15 \documentclass{scrartcl}
16
17 \usepackage[
18 themecolor=samviolet
19 ]{\jobname-settings}
20
21 % meta %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
22 \title{The \texorpdfstring{\tikzlings}{tikzlings} package}
23 \subtitle{drawing animals and beings in \TikZ}
24 \author{%
25 \texorpdfstring{
26 \begin{tikzpicture}
27 \penguin
28 \end{tikzpicture}\\[0.8em]
29 \texttt{samcarter}\\
30 \url{https://github.com/samcarter/tikzlings}\\
31 \url{https://ctan.org/pkg/tikzlings}
32 }{samcarter}}
33 \date{Version v2.5 \textendash{} 2025/12/11}
34 \packagename{tikzlings}
35
36 \selectcolormodel{rgb}
37 \colorlet{blue}{samlblue}
38
39 % packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
40 \usepackage{tikzlings}
41 \usepackage{bearwear}
42 \usetikzlibrary{3d}
43 \usetikzlibrary{tikzlings}
44
45 % including commented lines from the .sty files %%%%%%%%%%%%%%%%%%%%%%
46 % thanks to Phelype Oleinik https://topanswers.xyz/tex?q=1861#a2092
47 \ExplSyntaxOn
48 \makeatletter
49 \iow_new:N \l__tikzlings_iow
50 \tl_new:N \l__tikzlings_file_name_tl
51 \NewDocumentCommand \CommentInput { m }
52 { \tikzlings_comment_input:n {#1} }
53 \cs_new_protected:Npn \tikzlings_comment_input:n #1
54 {
55 \file_get_full_name:nNTF {#1} \l__tikzlings_file_name_tl
56 { \__tikzlings_comment_input: }
57 { \msg_error:nnn { tikzlings } { file-not-found } {#1} }
58 }
59 \msg_new:nnn { tikzlings } { file-not-found } { File~'#1'~not~found. }
60 \cs_new_protected:Npn \__tikzlings_comment_input:
61 {
62 \group_begin:
63 \cctab_select:N \c_other_cctab
64 \int_set:Nn \tex_endlinechar:D { `\^^M }
65 \use:x { \tex_everyeof:D { \exp_not:N \q_nil \char_generate:nn { 13 } { 13 } } }
66 \char_set_active_eq:NN \^^M \__tikzlings_process_line:w
67 \char_set_catcode_active:N \^^M
68 \iow_open:Nn \l__tikzlings_iow { \c_sys_jobname_str . cif } % cif => comment input file
69 \exp_after:wN \__tikzlings_process_line:w
70 \tex_input:D { \l__tikzlings_file_name_tl }
71 \iow_close:N \l__tikzlings_iow
72 \group_end:
73 \declare@file@substitution { \l__tikzlings_file_name_tl } { \c_sys_jobname_str . cif }
74 \input { \l__tikzlings_file_name_tl }
75 \undeclare@file@substitution { \l__tikzlings_file_name_tl }
76 }
77 \group_begin:
78 \char_set_catcode_active:N \^^M
79 \char_set_active_eq:NN \^^M \scan_stop:
80 \cs_new_protected:Npx \__tikzlings_process_line:w #1 ^^M
81 { \exp_not:N \__tikzlings_parse_line:w ^^M #1 ^^M \c_percent_str \s_stop }
82 \cs_set_protected:Npn \__tikzlings_tmp:w #1
83 {
84 \cs_new_protected:Npn \__tikzlings_parse_line:w ##1 ^^M #1 ##2 \s_stop
85 {
86 \tl_if_empty:nTF {##1}
87 {
88 \peek_charcode_remove:NTF #1
89 { \__tikzlings_ignore_line:w }
90 { \__tikzlings_output_line:w }
91 ##2 \s_stop ^^M
92 }
93 {
94 \tl_set:Nx \l_tmpa_tl { \tl_tail:n {##1} }
95 \tl_if_eq:NNF \l_tmpa_tl \q_nil { ^^M }
96 }
97 }
98 \cs_new_protected:Npn \__tikzlings_output_line:w ##1 ^^M #1 \s_stop
99 { \iow_now:Nn \l__tikzlings_iow {##1} }
100 \cs_new_protected:Npn \__tikzlings_ignore_line:w ##1 \s_stop { }
101 }
102 \exp_args:No \__tikzlings_tmp:w { \c_percent_str }
103 \group_end:
104 \makeatother
105 \ExplSyntaxOff
106
107 % customisation %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
108 \deftocheading{toc}{}%
109 \setcounter{tocdepth}{1}
110
111 \newcommand*\gobbleentrynumber[1]{}
112 \newcommand*\mytocformat[1]{#1}
113 \newcommand*\mytocpageformat[1]{#1}
114 \makeatletter
115 \RedeclareSectionCommand[
116 toclinefill=\hyper@linkstart{link}{\Hy@tocdestname}\TOCLineLeaderFill\hyper@linkend,
117 tocnumwidth=0pt,
118 tocentrynumberformat=\gobbleentrynumber,
119 tocentryformat=\mytocformat,
120 tocpagenumberformat=\mytocpageformat,
121 tocbeforeskip=0.8ex plus 1pt minus 1pt
122 ]{section}
123
124 \renewcommand{\sectionlinesformat}[4]{%
125 \Ifstr{#1}{section}{%
126 \parbox[t]{\linewidth}{%
127 \raggedsection\@hangfrom{\hskip #2#3}{#4}\par%
128 \kern-.75\ht\strutbox\rule{\linewidth}{.8pt}%
129 }%
130 }{%
131 \@hangfrom{\hskip #2#3}{#4}}%
132 }
133 \makeatother
134
135 \renewcommand*{\subsectionformat}{}
136 \renewcommand*{\sectionformat}{}
137
138 \pgfmathsetseed{2}
139 \setlength{\footheight}{50pt}
140
141 \cfoot{\thepage}
142 \cfoot{%
143 \begin{tikzpicture}[scale=0.5]
144 \tikzling[signpost={\thepage}]
145 \end{tikzpicture}
146 }
147 \pagestyle{scrheadings}
148
149 \tcbset{%
150 tikz lower,
151 height plus=3cm,
152 }
153
154 \AddToHook{tikzlings/coat/background}{\path (-1.63,0.1) rectangle (1.63,2.26);}
155 \AddToHook{tikzlings/mouse/background}{\path (-1.6,0.1) rectangle (0.905, 2.17);}
156 \AddToHook{tikzlings/cat/background}{\path (-1.6,0.1) rectangle (0.905, 2.17);}
157 \AddToHook{tikzlings/dog/background}{\path (-1.6,0.1) rectangle (0.905, 2.17);}
158
159 \begin{document}
160 \maketitle
161 \thispagestyle{scrheadings}
162
163 \section*{Introduction}
164 \label{intro}
165
166 The \tikzlings are a collection of little animals (and beings) drawn in \TikZ. It is the next evolutionary phase of the \tikzmarmots package, extending it with further animals (and beings) and also adding the ability to natively use many of the accessories known from the \tikzducks package.
167
168 I'd like to thank the friendly and helpful community of \TeX{} users for their suggestions, feedback and help to create this package and naming it. As a thank you, the \tikzlings all have names which are, in some way or another, connected to their creators, their inspiration or to users of \TeX{}.
169
170 \blurb
171
172 \clearpage
173 \section*{The \tikzlings}
174
175 The \tikzlings package is a collection of packages. It can either be loaded as a whole with \saminline|\usepackage{tikzlings}| or the subpackages containing the individual animals (and beings) can be used separately, e.g.\ by loading \saminline|\usepackage{tikzlings-marmots}|.
176
177 The basic usage is the same for all animals (and beings). Inside a \saminline|tikzpicture|, the \tikzlings can be added via \saminline|\<name_of_the_tikzling>|. For example
178
179 \begin{tcblisting}{title={Basic Ti\emph{k}Zling}}
180 \marmot
181 \end{tcblisting}
182
183 will produce a marmot. All usual \TikZ and \saminline|pgf| keys can be passed as optional argument to change the appearance. For example scaling and rotating the \tikzlings can be done by
184
185 \begin{tcblisting}{title={Ti\emph{k}Zling with options}}
186 \penguin[rotate=30,scale=0.5]
187 \end{tcblisting}
188
189 In addition to the standard options provided by \TikZ each \tikzlings also comes with some additional options which are listed in the following sections. If these additional options consist of multiple words they are available both with and without spaces, for example \saminline|askphil| and \saminline|ask phil| will be treated as the same.
190
191 To make customisation of the \tikzlings easier, some hooks are provided, which can be utilised by the user in order to add commands at specific layers:
192 \begin{itemize}
193 \item \saminline|\NewHook{tikzlings/<name_of_the_tikzling>/background}|
194 \item \saminline|\NewHook{tikzlings/<name_of_the_tikzling>/belly}|
195 \item \saminline|\NewHook{tikzlings/<name_of_the_tikzling>/body}|
196 \item \saminline|\NewHook{tikzlings/<name_of_the_tikzling>/foreground}|
197 \end{itemize}
198
199 With regard to the individual components of the \tikzlings, they are located in the following z order:
200
201 \begingroup
202 \centering
203 \begin{tikzpicture}[scale=0.95]
204 \newcommand{\planewidth}{2.6}
205 \newcommand{\planeheight}{3.4}
206 \newcommand{\planes}{\fill[gray!20!white,opacity=0.9] (-\planewidth,-0.1) rectangle (\planewidth,\planeheight);}
207 \newcommand{\hooks}{\draw[themecolor, rounded corners=3pt, line width=1pt] (-\planewidth,-0.1) rectangle (\planewidth,\planeheight);}
208 \newcounter{layer}
209 \setcounter{layer}{0}
210 \begin{scope}[canvas is zy plane at x=\thelayer*1.8]
211 \hooks
212 \node[font=\footnotesize\ttfamily,rotate=45] at (0,0.1) {background};
213 \end{scope}
214 \addtocounter{layer}{1}
215 \begin{scope}[canvas is zy plane at x=\thelayer*1.8]
216 \planes
217 \newcommand{\rhinohookbelly}{
218 \pgfsetfillopacity{0}
219 \pgfsetstrokeopacity{0}
220 }
221 \rhino
222 \end{scope}
223 \addtocounter{layer}{1}
224 \begin{scope}[canvas is zy plane at x=\thelayer*1.8]
225 \hooks
226 \node[font=\footnotesize\ttfamily,rotate=45] at (0,0.1) {belly};
227 \end{scope}
228 \addtocounter{layer}{1}
229 \begin{scope}[canvas is zy plane at x=\thelayer*1.8]
230 \planes
231 \newcommand{\rhinohookbackground}{
232 \pgfsetfillopacity{0}
233 \pgfsetstrokeopacity{0}
234 }
235 \newcommand{\rhinohookbelly}{
236 \pgfsetfillopacity{1}
237 \pgfsetstrokeopacity{1}
238 }
239 \rhino
240 \end{scope}
241 \addtocounter{layer}{1}
242 \begin{scope}[canvas is zy plane at x=\thelayer*1.8]
243 \hooks
244 \node[font=\footnotesize\ttfamily,rotate=45] at (0,0.1) {body};
245 \end{scope}
246 \addtocounter{layer}{1}
247 \begin{scope}[canvas is zy plane at x=\thelayer*1.8]
248 \planes
249 \thing[magichat,magicwand]
250 \end{scope}
251 \addtocounter{layer}{1}
252 \begin{scope}[canvas is zy plane at x=\thelayer*1.8]
253 \hooks
254 \node[font=\footnotesize\ttfamily,rotate=45] at (0,0.1) {foreground};
255 \end{scope}
256 \end{tikzpicture}
257 \par
258 \endgroup
259
260 In addition, there are also hooks available which will effect all \tikzlings:
261 \begin{itemize}
262 \item \saminline|\NewHook{tikzlings/background}|
263 \item \saminline|\NewHook{tikzlings/belly}|
264 \item \saminline|\NewHook{tikzlings/body}|
265 \item \saminline|\NewHook{tikzlings/foreground}|
266 \end{itemize}
267
268 A short example how the hooks can be used:
269 \begin{tcblisting}{title={Hooks}}
270 \AddToHook{tikzlings/mouse/belly}{%
271 \fill[red!80!black] (0.55, 1.35) --
272 (0.65, 0.3) -- (-0.65, 0.3) --
273 (-0.55, 1.35) -- (0.0, 0.9) -- cycle;
274 }
275
276 \mouse
277
278 % optionally
279 \RemoveFromHook{tikzlings/mouse/belly}
280 \end{tcblisting}
281
282 Another way to use the \tikzlings is the \TikZ library of the same name. By loading this library, all macros from the normal package can be used. In addition the \TikZ library also defines the \tikzlings as \saminline|pic|'s:
283 \begin{tcolorbox}[title={Ti\emph{k}z library and \texttt{\textbackslash pic}}]
284 \begin{samcode}
285 \documentclass{standalone}
286
287 \usepackage{tikz}
288 \usetikzlibrary{tikzlings}
289
290 \begin{document}
291 \begin{tikzpicture}
292 \path (1,0) pic{bear}
293 (2,1) pic[
294 coati/body=blue,
295 scale=0.5
296 ]{coati}
297 (3,2) pic[
298 thing/hat=red
299 ]{penguin};
300 \end{tikzpicture}
301 \end{document}
302 \end{samcode}
303
304 \tcblower
305 \begin{tikzpicture}
306 \path (1,0) pic{bear}
307 (2,1) pic[
308 coati/body=blue,
309 scale=0.5
310 ]{coati}
311 (3,2) pic[
312 thing/hat=red!80!black
313 ]{penguin};
314 \end{tikzpicture}
315 \end{tcolorbox}
316
317 \clearpage
318 \subsection*{List of all \tikzlings:}
319
320 \begingroup
321 \hypersetup{hidelinks,linktoc=all}
322 \tableofcontents
323 \endgroup
324
325 \makeatletter
326 \tikzlings@clistMapInlineNn{\tikzlings@packages@clist}{%
327 \CommentInput{tikzlings-#1.sty}}
328 \makeatother
329
330 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
331 %
332 % Random Tikzling
333 %
334 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
335 \clearpage
336 \section[Ti\emph{k}Zling]{Buffon, the random Ti\emph{k}Zling}
337
338 \emph{Buffon is named after the French scientist Georges-Louis Leclerc de Buffon. If the name sounds familiar, then maybe from his famous needle problem, which -- amongst other things -- can be used to approximate the value of~$\pi$.}
339
340 \subsection{Package name}
341
342 \begin{tcolorbox}[lower separated=false, lefthand width=.8\linewidth,title={Package usage}]
343 \vspace*{0.5cm}
344 \saminline|\usepackage{tikzlings}|
345 \vspace*{0.5cm}
346 \end{tcolorbox}
347
348 \subsection{Basic Usage}
349
350 \begin{tcblisting}{title={Basic Ti\emph{k}Zling}}
351 \tikzling
352 \end{tcblisting}
353
354 \subsection{Options}
355
356 Options common for all \tikzlings are supported for the \saminline|\tikzling|. These are the ability to change the body colour
357 \begin{tcblisting}{title={Body colour}}
358 \tikzling[body=blue]
359 \end{tcblisting}
360
361 to view the \tikzlings from behind
362 \begin{tcblisting}{title={Back view}}
363 \tikzling[back]
364 \end{tcblisting}
365
366 and the \saminline|3D| key, which will make the Ti\emph{k}Zlings 3-dimensional:
367 \begin{tcblisting}{title={3D view}}
368 \tikzling[3D]
369 \end{tcblisting}
370
371 And finally the \saminline|contour| key will only draw the outlines:
372 \begin{tcblisting}{title={Contours}}
373 \tikzling[contour=black]
374 \end{tcblisting}
375
376 If an option of a specific Ti\emph{k}Zling is used (for example \saminline|sleeping|, which only the koala and sloth can do) this option will only work for these \tikzlings. For all other \tikzlings, the option will be silently ignored.
377
378 In addition all usual \TikZ and \saminline|pgf| keys can be used in the optional argument as well as the accessories presented in the following section.
379
380 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
381 %
382 % Accessories
383 %
384 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
385 \clearpage
386 \section{Accessories}
387
388 To customise the \tikzlings the package provides a number of accessories which can be added to all the \tikzlings simply by adding the respective keyword as optional argument:
389
390 \begin{tcblisting}{title={Basic usage}}
391 \bear[
392 hat
393 ]
394 \end{tcblisting}
395
396 For most of these items, the colour can be customised:
397
398 \begin{tcblisting}{title={Customisation}}
399 \koala[
400 crown=orange!50!yellow
401 ]
402 \end{tcblisting}
403
404 Unfortunately it is very difficult to create accessories that will fit all the different shapes of the \tikzlings. Therefore it is also possible to add them separately as optional argument of the \saminline|\thing| macro, which allows more control of their size and placement:
405
406 \begin{tcblisting}{title={Further customisation}}
407 \owl
408 \thing[
409 tophat,
410 scale=1.5,
411 yshift=-0.6cm,
412 xshift=-0.05cm
413 ]
414 \end{tcblisting}
415
416 A list of all available accessories is given below. For completeness the default colours for each key are shown, but actually it is unnecessary unless it should be changed. In case more than one key is shown, all but the first are optional.
417
418 \subsection{Hats}
419
420 \begin{tcblisting}{title={Hat}}
421 \penguin[
422 hat=blue!40!black
423 ]
424 \end{tcblisting}
425
426 \begin{tcblisting}{title={Top hat}}
427 \snowman[
428 tophat=black!90!white
429 ]
430 \end{tcblisting}
431
432 \begin{tcblisting}{title={Beret}}
433 \mouse[
434 beret=black
435 ]
436 \end{tcblisting}
437
438 \begin{tcblisting}{title={Strawhat}}
439 \anteater[
440 strawhat=blue,
441 ribbon=black
442 ]
443 \end{tcblisting}
444
445 \begin{tcblisting}{title={Harlequin hat}}
446 \coati[
447 harlequin=blue,
448 niuqelrah=red
449 ]
450 \end{tcblisting}
451
452 \begin{tcblisting}{title={Witch hat}}
453 \cat[
454 witch=gray
455 ]
456 \end{tcblisting}
457
458 \begin{tcblisting}{title={Magic hat}}
459 \bear[
460 magichat=violet,
461 magicstars=yellow!80!brown
462 ]
463 \end{tcblisting}
464
465 \begin{tcblisting}{title={Crown}}
466 \sheep[
467 crown=yellow!90!orange
468 ]
469 \end{tcblisting}
470
471 \begin{tcblisting}{title={Queen crown}}
472 \bat[
473 queencrown=yellow
474 ]
475 \end{tcblisting}
476
477 \begin{tcblisting}{title={King crown}}
478 \marmot[
479 kingcrown=gray
480 ]
481 \end{tcblisting}
482
483 \begin{tcblisting}{title={Santa hat}}
484 \mouse[
485 santa=red!80!black
486 ]
487 \end{tcblisting}
488
489 \begin{tcblisting}{title={Chefs hat}}
490 \bear[
491 chef=gray!20!white
492 ]
493 \end{tcblisting}
494
495 \begin{tcblisting}{title={Graduate cap}}
496 \wolf[
497 graduate=black,
498 tassel=red
499 ]
500 \end{tcblisting}
501
502 \begin{tcblisting}{title={Alien antennas}}
503 \penguin[
504 alien=green
505 ]
506 \end{tcblisting}
507
508 \begin{tcblisting}{title={Sombrero}}
509 \marmot[
510 sombrero=orange!70!yellow,
511 sombreroa= green!70!blue,
512 sombrerob= red,
513 sombreroc= blue
514 ]
515 \end{tcblisting}
516
517 \subsection{Communication}
518
519 \begin{tcblisting}{title={Book}}
520 \coati[
521 book={\tiny\TeX},
522 bookcolour=brown
523 ]
524 \end{tcblisting}
525
526 \begin{tcblisting}{title={Sign post}}
527 \pig[
528 signpost={\TeX},
529 signcolour= brown!50!black,
530 signback=green!40!black
531 ]
532 \end{tcblisting}
533
534 \begin{tcblisting}{title={Speech bubble}}
535 \bear[
536 speech={\TeX},
537 bubblecolour=gray!30!white
538 ]
539 \end{tcblisting}
540
541 \begin{tcblisting}{title={Thinking bubble}}
542 \penguin[
543 think={\TeX},
544 bubblecolour=gray!30!white
545 ]
546 \end{tcblisting}
547
548 \subsection{Food}
549
550 \begin{tcblisting}{title={Pizza}}
551 \koala[
552 pizza
553 ]
554 \end{tcblisting}
555
556 \begin{tcblisting}{title={Cheese}}
557 \mouse[
558 cheese=yellow!30!orange!60!white
559 ]
560 \end{tcblisting}
561
562 \begin{tcblisting}{title={Baguette}}
563 \bug[
564 baguette=brown
565 ]
566 \end{tcblisting}
567
568 \begin{tcblisting}{title={Cake}}
569 \moles[
570 cake=violet
571 ]
572 \end{tcblisting}
573
574 \begin{tcblisting}{title={Ice cream}}
575 \dog[
576 icecream=brown!60!gray,
577 flavoura=brown!50!black,
578 flavourb=white!70!brown,
579 flavourc=red!50!white
580 ]
581 \end{tcblisting}
582
583 \begin{tcblisting}{title={Milk shake}}
584 \penguin[
585 milkshake=red!20!white
586 ]
587 \end{tcblisting}
588
589 \begin{tcblisting}{title={wine}}
590 \owl[
591 wine=red!70!black
592 ]
593 \end{tcblisting}
594
595 \begin{tcblisting}{title={Cocktail}}
596 \bear[
597 cocktail
598 ]
599 \end{tcblisting}
600
601 \begin{tcblisting}{title={Banana}}
602 \ape[
603 banana=yellow!80!orange
604 ]
605 \end{tcblisting}
606
607 \subsection{Sports}
608
609 \begin{tcblisting}{title={Cricket bat}}
610 \coati[
611 cricket=brown
612 ]
613 \end{tcblisting}
614
615 \begin{tcblisting}{title={Hockey stick}}
616 \bug[
617 hockey=brown
618 ]
619 \end{tcblisting}
620
621 \begin{tcblisting}{title={Football}}
622 \elephant[
623 football=white
624 ]
625 \end{tcblisting}
626
627 \subsection{Other items}
628
629 \begin{tcblisting}{title={Crystal ball}}
630 \meerkat[
631 crystalball=cyan
632 ]
633 \end{tcblisting}
634
635 \begin{tcblisting}{title={Magic wand}}
636 \bear[
637 magicwand
638 ]
639 \end{tcblisting}
640
641 \begin{tcblisting}{title={Rolling pin}}
642 \coati[
643 rollingpin=brown
644 ]
645 \end{tcblisting}
646
647 \begin{tcblisting}{title={Light sabre}}
648 \penguin[
649 lightsaber=green
650 ]
651 \end{tcblisting}
652
653 \begin{tcblisting}{title={Torch}}
654 \snowman[
655 torch=gray
656 ]
657 \end{tcblisting}
658
659 \begin{tcblisting}{title={Basket}}
660 \mouse[
661 basket=brown!70!gray
662 ]
663 \end{tcblisting}
664
665 \begin{tcblisting}{title={Easter Basket}}
666 \sloth[
667 easter=brown!70!gray,
668 egga=blue,
669 eggb=green,
670 eggc=red
671 ]
672 \end{tcblisting}
673
674 \begin{tcblisting}{title={Crozier}}
675 \koala[
676 crozier=brown
677 ]
678 \end{tcblisting}
679
680 \begin{tcblisting}{title={Shovel}}
681 \snowman[
682 shovel=gray
683 ]
684 \end{tcblisting}
685
686 \begin{tcblisting}{title={Pick axe}}
687 \penguin[
688 pickaxe=gray
689 ]
690 \end{tcblisting}
691
692 \begin{tcblisting}{title={Straw broom}}
693 \bug[
694 strawbroom=brown!50!white,
695 strawbroomstick=brown,
696 strawbroomribbon=red!50!black
697 ]
698 \end{tcblisting}
699
700 \begin{tcblisting}{title={broom}}
701 \chicken[
702 broom=brown,
703 broomstick=gray!50!black
704 ]
705 \end{tcblisting}
706
707 \begin{tcblisting}{title={Open umbrella}}
708 \rhino[
709 umbrella=cyan
710 ]
711 \end{tcblisting}
712
713 \begin{tcblisting}{title={Closed umbrella}}
714 \marmot[
715 umbrellaclosed=cyan
716 ]
717 \end{tcblisting}
718
719 \begin{tcblisting}{title={Handbag}}
720 \mouse[
721 handbag=red!70!black
722 ]
723 \end{tcblisting}
724
725 \begin{tcblisting}{title={Stick with leaf}}
726 \ape[
727 stick=brown!50!black,
728 leaf=green!70!red
729 ]
730 \end{tcblisting}
731
732 \begin{tcblisting}{title={Towel}}
733 \moles[
734 towel=violet
735 ]
736 \end{tcblisting}
737
738 \begin{tcblisting}{title={Present}}
739 \dog[present=violet]
740 \dog[present, xshift=2cm,
741 present top=cyan,
742 present bottom=blue,
743 present ribbon=teal]
744 \end{tcblisting}
745
746 \subsection{Random accessories}
747
748 Given the number of available accessories, it can be hard to decide which ones to use.
749 Luckily, one does not need to decide and pick random accessories instead.
750 There are two options for this purpose, \saminline|randomhead| and \saminline|randomaccessories|, which will choose a random headpiece and a random other accessories, respectively.
751 \begin{tcblisting}{title={Random accessories}}
752 \coati[
753 randomhead,
754 randomaccessories
755 ]
756 \end{tcblisting}
757
758 \end{document}