summaryrefslogtreecommitdiff
path: root/graphics/pgf/contrib/tikz-among-us/doc/tikz-among-us.tex
blob: 36072de0343e48794010fd2ffcc45f37dcc01907 (plain)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
% !TeX spellcheck = en_US
% !TeX encoding = UTF-8
% =============================

% ========== Classe do documento, geometria, codificação e versão
\documentclass[12pt]{article}
\usepackage[a4paper,top=2cm,bottom=2cm,left=2cm,right=2cm]{geometry} % marginparwidth=1.75cm
% ----------
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
% ==========

% ========== Pacotes
\usepackage{FHZ-packages-minimum}
\usepackage{FHZ-packages-TikZ-mydef}
% ==========
\usepackage{enumitem}
\usepackage{paracol}
\usepackage{multicol}
\usepackage[]{animate} %draft
% ==========
\usepackage{abstract}
\renewcommand{\abstractnamefont}{\normalfont\Large\bfseries}
%\renewcommand{\abstracttextfont}{\normalfont\Huge}
% ==========

% ==========
\usepackage{FHZ-textos}
% ==========

% =================== Formatações e marca d'água em arquivos de estilos .sty
% ---------- Formatacao -- hf
\usepackage{FHZ-formatacao-hf-headings_h_R_thepage}
% ---------- Formatacao -- hyperref
\usepackage[07]{FHZ-formatacao-hyperref-opt}
% ===================

% ========== Novos comandos para inserir figuras e TikZ de forma padronizada
\usepackage{FHZ-figures-TikZ-IEEE}
% ==========

% ========== Capa
\usepackage{FHZ-capa-article}
% ==========

\usepackage{tikz-among-us}
\usepackage{tikz-among-us-fancyhdr}
\usepackage[cor=violet!70!white,BG,type=1]{tikz-among-us-watermark-eso-pic}

%\usepackage{FHZ-tcolorbox-01}

\usepackage{FHZ-listings-showexpl-style}
\lstset{style=estiloBaseGeral,
  frame=none,
  keywordstyle=\color{blue}
}

\usepackage[skins,listings,breakable,raster]{tcolorbox}
\tcbuselibrary{listings}

\newtcblisting{FHZtcbAmongUs}[1][]{ %
  enhanced,
  colback=cyan!5!white, colframe=violet!75!black, fonttitle=\large\bfseries,
  colbacktitle=violet!85!black,
  listing and text, breakable,
  after={\par\vspace{0.5\baselineskip}\noindent},
  listing options={style=estiloTcbAzul},
  #1
}

\newtcolorbox{FHZboxEnumerateStyle}{
  enhanced, breakable,
  colback=orange!15!white,
  colframe=orange!50!black,
  watermark tikz={\tikz
    \node[opacity=0.4, rotate around={-45:(1.75,2.3)}]{\amongUsOriginal{blue}{white}};
    \node[opacity=0.4, rotate around={45:(1.75,2.3)}] at (5,0) {\amongUsOriginal{pink}{white}};
    \node[opacity=0.4, rotate around={-135:(1.75,2.3)}] at (10,0) {\amongUsOriginal{green}{white}};
    \node[opacity=0.4, rotate around={135:(1.75,2.3)}] at (15,0) {\amongUsOriginal{olive}{white}{black}{white}};
  }
}
\newenvironment{FHZtcbEnumerate}{%
  \begin{FHZboxEnumerateStyle}\begin{enumerate}}
    {\end{enumerate}\end{FHZboxEnumerateStyle}
}

% ========== Dados capa folha rosto ========== Sempre crie uma cópia local
\newcommand{\edicao}{1}
\newcommand{\versao}{1.1.0}
% ======================
\newcommand{\textoEdicao}{Edition}
\newcommand{\textoVersao}{Version}
\newcommand{\textoCopyright}{}
% ======================
\newcommand{\Universidade}{}
\newcommand{\Curso}{} %{Curso --}
\newcommand{\Departamento}{}
% ---
\newcommand{\AutorA}{\textbf{FHZ}}
\newcommand{\AutorB}{}
\newcommand{\AutorC}{}
\newcommand{\AutorD}{}
% ---
\newcommand{\Titulo}{\textbf{There is a {\TikZ}-Impostor Among us}}
% ---
\newcommand{\Cidade}{\textbf{tikz-among-us package}\\} %{Cidade --}
\newcommand{\Estado}{\url{https://www.ctan.org/pkg/tikz-among-us}\\} %{Estado --}
\newcommand{\Pais}{\textbf{Brasil} -- \textbf{{\today} -- \textoVersao: \versao}}
\newcommand{\Mes}{}
\newcommand{\Ano}{}
% ---
\newcommand{\de}{}
% ---
\newcommand{\textoFolhaRosto}{%
}
% ---
\newcommand{\OrientadorA}{}
\newcommand{\OrientadorB}{}
\newcommand{\textoOrientador}{}
\newcommand{\textoCoOrientador}{}
% ====================== Input_Folha_Rosto_Livro_Versao

% ========== Hypersetup local
\hypersetup{pdfinfo={
		Title={\Titulo},
		Author={\AutorA} %,\AutorB
}}
% ==========

\begin{document}
% ========== Capas
{\FHZCapaArticleCabecalho}
% ==========

\begin{abstract}
  \begin{FHZboxEnumerateStyle}
    This is the \texttt{tikz-among-us} package documentation. This package recreates some AmongUs characters in {\TikZ} environment. Some interesting uses alongside other packages are also presented.
  \end{FHZboxEnumerateStyle}
\end{abstract}

\begin{FHZboxEnumerateStyle}
  \begin{multicols}{2}
    {\small \tableofcontents}
  \end{multicols}
\end{FHZboxEnumerateStyle}
\section{Introduction}

The following packages are used in the examples and applications.
\begin{FHZtcbEnumerate}
  \item \href{https://www.ctan.org/pkg/tikz}{{\CTAN} -- tikz}

  Whose following packages are always used as reference of quality and capabilities:
  \begin{enumerate}
    \begin{multicols}{2}
      \item \href{https://www.ctan.org/pkg/tikzducks}{{\CTAN} -- tikzducks}
      \item \href{https://www.ctan.org/pkg/tikzmarmots}{{\CTAN} -- tikzmarmots}
    \end{multicols}
  \end{enumerate}
  \begin{multicols}{2}
%    \item \href{https://www.ctan.org/pkg/adjustbox}{{\CTAN} -- adjustbox}
    \item \href{https://www.ctan.org/pkg/tcolorbox}{{\CTAN} -- tcolorbox}
    \item \href{https://www.ctan.org/pkg/fancyhdr}{{\CTAN} -- fancyhdr}
    \item \href{https://www.ctan.org/pkg/eso-pic}{{\CTAN} -- eso-pic}
    \item \href{https://www.ctan.org/pkg/animate}{{\CTAN} -- animate}
  \end{multicols}
\end{FHZtcbEnumerate}

The basic concept started as a question at {\TeXStackExchange} and after some research some new ideas have been found to improve the initial sketch.
\begin{FHZtcbEnumerate}
  \item \href{https://tex.stackexchange.com/questions/567009/there-is-a-tikz-impostor-among-us/567010#567010}{{\TeXStackExchange} -- There is a TikZ-impostor Among us}: is the original post which started with a very simple design and then received an update with the shade-command style derived from:
  \begin{enumerate}
    \item \href{https://tex.stackexchange.com/questions/424113/how-to-use-tikz-shade-command-in-order-to-achieve-3d-like-results}{{\TeXStackExchange} -- How to use Tikz {\textbackslash}shade command in order to achieve 3D like results}: is the inspiration to create commands with parts of a drawing to build a greater design in {\TikZ} and the command shade.
    \item \href{https://youtu.be/1zZZBB9-Nm8}{{\YouTube} -- MatPat's Game Theory}: is the inspiration to the design of the shadow. Many artists have replicated the original design of the game.
    \item \href{https://youtu.be/yZrhRKyFP-U}{{\YouTube} -- Game Toons -- Among Us Logic Movie | Cartoon Animation}: is a animation featuring Among Us characters and source to many emotional expressions and hand positions since many of them are used to make characters much more expressive.
  \end{enumerate}
\end{FHZtcbEnumerate}

The original game is available in different online stores. I don't own the game, or have any relationship with authors nor any enterprise. I'm just a guy who liked the game and used it as a motivation to create a package for {\TikZ} users.
\begin{FHZtcbEnumerate}
  \item \href{https://play.google.com/store/apps/details?id=com.innersloth.spacemafia&hl=pt_BR&gl=US}{AmongUs original game to smartphones}
\end{FHZtcbEnumerate}

\section{Using the package}

There are three base style files.
\begin{FHZtcbAmongUs}[listing only]
\usepackage{tikz-among-us}
\usepackage{tikz-among-us-fancyhdr}
\usepackage{tikz-among-us-watermark-eso-pic}
\end{FHZtcbAmongUs}

A brief description follows:
\begin{FHZtcbEnumerate}
  \item \verb|\usepackage{tikz-among-us}|: Main \texttt{.sty} file with the definitions in {\TikZ} of each body part, style of shading and complete design. Although this style is far from the utmost best standards for a {\TikZ} package, it has been a very useful project to motivates me to learn more and improve my own usage of {\TikZ} beyond standalone applications or drawings and also my very first {\CTAN} publication.

  \item \verb|\usepackage{tikz-among-us-fancyhdr}|: A basic implementation to add the Among Us characters in headers or footers due the \texttt{fancyhdr} package. This is not a final super fancy implementation, but it splits the configurations to a separated \texttt{.sty} file, which can be edited aownernd reused.

  \item \verb|\usepackage{tikz-among-us-watermark-eso-pic}|: A preset implementation of watermarks using the \texttt{eso-pic} package. This implementation takes advantage of the \texttt{kvoptions} packages in order to add some degrees of flexibility to the watermarks. Of course anyone could just replace the basic command from \texttt{eso-pic} in each file they want. The preset configurations aim to be a synthesis and make its usage a little bit more flexible than just copying and pasting content in each file.
\end{FHZtcbEnumerate}

\section{Examples -- tikz-among-us}

While creating the drawing, I did a first attempt, now called \texttt{Original}, which is a command with a \texttt{tikzpicture} inside it. This command was not made with the best method to be flexible, but it is indeed very simple and direct. I chose to keep it as an alternative to the new commands and because it has a different style.
The are two main styles, \texttt{Style I} and \texttt{Style II}. \texttt{Style I} has the shadow create by ``hand'', it means, the shadow is a fixed perspective which boundaries were directly programmed in {\TikZ}. \texttt{Style II} uses the library \texttt{shade} to create shadows, but I couldn't reproduced the same result as I did in \texttt{Style I}.
In this sense, I chose to keep both styles and using the roman number as a suffix of each command.

\subsection{Styles I e II}

The basic syntax to insert each character is:
\begin{FHZtcbAmongUs}[listing only]
\amongUsI[<options>]{<BodyColor>}{<EyeColor>}
\end{FHZtcbAmongUs}
\noindent
and for each body part, the commands are:
\begin{FHZtcbAmongUs}[listing only]
\amongUsBackpackI[<options>]{<BodyColor>}
\amongUsBodyI[<options>]{<BodyColor>}
\amongUsEyesI[<options>]{<EyeColor>}
\end{FHZtcbAmongUs}
\noindent
where \texttt{<options>} is any suitable option of the environment \texttt{scope} of {\TikZ}; and \texttt{<BodyColor>} and \texttt{<EyeColor>} are any color provided such as {\TikZ} recognizes them.
For each basic command with suffix \texttt{I} there is another command with suffix \texttt{II}, that represents the alternative method to create shades. There are no \texttt{Style II} for every design.

This is the basic use of the package.

\begin{paracol}{2}
\begin{FHZtcbAmongUs}[title=Basic Use -- Style I]
\begin{tikzpicture}
  \amongUsI{yellow}{cyan}
\end{tikzpicture}
\end{FHZtcbAmongUs}
\switchcolumn
\begin{FHZtcbAmongUs}[title=Basic Use -- Style II]
\begin{tikzpicture}
  \amongUsII{yellow}{cyan}
\end{tikzpicture}
\end{FHZtcbAmongUs}
\end{paracol}

Each body part was created to have its coordinate origin such as it is corrected placed on the main body without the need of any shift.
On the other hand, the \texttt{shift=\{(x,y)\}} command of the environment \texttt{scope} is a well suitable method to move each part.

\begin{paracol}{2}
\begin{FHZtcbAmongUs}[title=Each body part -- Style I]
\begin{tikzpicture}
  \amongUsBackpackI
    [shift={(0,0)}]{blue}
  \amongUsBodyI
    [shift={(0.6,0)}]{blue}
  \amongUsEyesI
    [shift={(3,0)}]{cyan}
\end{tikzpicture}
\end{FHZtcbAmongUs}
\switchcolumn
\begin{FHZtcbAmongUs}[title=Each body part -- Style II]
\begin{tikzpicture}
  \amongUsBackpackII
    [shift={(0,0)}]{green}
  \amongUsBodyII
    [shift={(0.6,0)}]{green}
  \amongUsEyesII
    [shift={(3,0)}]{red}
\end{tikzpicture}
\end{FHZtcbAmongUs}
\end{paracol}

%Unfortunately, I'm (still) not the most proficient {\TikZ} user, so I didn't create the most optimized style to properly use the command \texttt{scale}, therefore, it is suggested to use the command \texttt{{\textbackslash}adjustbox} from the package \texttt{adjustbox} to scale the drawing without incurring in some errors with the \texttt{rounded corners} used in the design.

After learning the issues between \texttt{scale} and \texttt{rounded corners}, I update the drawing since version \texttt{1.1.0} to work with the \texttt{scale} options. Despite the update, the alternative method using the command \texttt{{\textbackslash}adjustbox} from the package \texttt{adjustbox} is still a valid option.
To rotate the draw around its center the command \texttt{rotate around=\{angle:(x0,y0)\}} should be used. The center of mass is close to the coordinates $x_0 = 1.75$ and $y_0 = 2.3$.

\begin{FHZtcbAmongUs}[title=Scaling with scale, sidebyside, righthand ratio=0.40]
  \begin{tikzpicture}
    \amongUsI[scale=0.5]{cyan}{gray}
    \amongUsI[scale=0.3, shift={(10,3)},
      rotate around={180:(1.75,2.3)}]
        {green!50!black}{cyan}
    \amongUsI[scale=0.1, shift={(50.5,0)},
      rotate around={45:(1.75,2.3)}]
        {orange!50!black}{orange}
  \end{tikzpicture}
\end{FHZtcbAmongUs}

\subsection{Style -- Original}

The original design is much more simplistic.

\begin{FHZtcbAmongUs}[title=Original Design -- Inside \textit{tikzpicture}]
\begin{tikzpicture}
  \node at (0,0) {\amongUsOriginal{blue}{orange}};
  \node at (5,0) {\amongUsOriginal{orange}{blue}};
  \node[scale=0.25] at (10,0) {\amongUsOriginal{red}{cyan}};
\end{tikzpicture}
\end{FHZtcbAmongUs}

Although it is simplistic, it was a good start point to insert emotions as options to the style. The emotions shall be added to \texttt{Styles I} and \texttt{II} in the future. The \texttt{Original} style can be use outside a \texttt{tikzpicture} environment.

\begin{FHZtcbAmongUs}[title=Original Design -- Outside \textit{tikzpicture}]
\amongUsOriginal{black}{cyan}
\amongUsOriginal[angry]{gray}{cyan}
\amongUsOriginal[very angry]{white}{cyan}
\end{FHZtcbAmongUs}

Inside the \texttt{tikzpicture} environment is possible to use some options of the command \texttt{node} to produce some more combinations. Indeed, that's the best method to achieve a black body suit with visible lines.

\begin{FHZtcbAmongUs}[title=Original Design -- Inside \textit{tikzpicture} with \textit{node} options]
\begin{tikzpicture}[every path/.style={very thick}]
  \node[red, fill=black] at (0,0) {\amongUsOriginal{white}{cyan}};
  \node[blue, fill=violet] at (5,0) {\amongUsOriginal[angry]{white}{cyan}};
  \node[yellow, fill=green] at (10,0)
    {\amongUsOriginal[very angry]{black}{cyan}};
\end{tikzpicture}
\end{FHZtcbAmongUs}

\subsection{Show me your Hands}

The following command is used to present some hands
\begin{FHZtcbAmongUs}[listing only]
\amongUsHands<X>[<options>]{HandColor}
\end{FHZtcbAmongUs}
\noindent
where <X> is a letter from $A$ to $G$.

\begin{FHZtcbAmongUs}[title=Hands]
\begin{tikzpicture}[every path/.style={very thick}]
  \amongUsHandsA[shift={(0,0)}]{yellow}
  \amongUsHandsB[shift={(2,0)}]{red}
  \amongUsHandsC[shift={(4,0)}]{blue}
  \amongUsHandsD[shift={(6,0)}]{green!50!black}
  \amongUsHandsE[shift={(8,0)}]{orange}
  \amongUsHandsF[shift={(10,0)}]{violet}
  \amongUsHandsG[shift={(12,0)}]{gray}
\end{tikzpicture}
\end{FHZtcbAmongUs}

\subsection{Smile as an Impostor}

The following commands are used to create the impostor design
\begin{FHZtcbAmongUs}[listing only]
\impostorSmile[<options>]{SmileColor}
\impostorTeethUp[<options>]{SmileColor}
\impostorTeethLw[<options>]{TeethColor}
\impostorTeeth[<options>]{TeethColor}
\impostorI[<options>]{BodyColor}{EyeColor}{SmileColor}{TeethColor}
\impostorII[<options>]{BodyColor}{EyeColor}{SmileColor}{TeethColor}
\end{FHZtcbAmongUs}

There are two separated commands to draw the teeth in order to give some flexibility to new designs. The command \verb|\impostorTeeth| just call both commands and is used by the command \verb|\impostorI|.

\begin{FHZtcbAmongUs}[title=Why so serious? Smile!]
\begin{tikzpicture}[every path/.style={very thick}]
\amongUsI[shift={(5,0)}]{green}{violet}
\impostorSmile[shift={(5,0)}]{black}
\impostorTeethUp[shift={(5,0)}]{white}
\impostorTeethLw[shift={(5,0)}]{white}

\amongUsI[shift={(10,0)}]{orange}{red}
\impostorTeeth[shift={(10,0)}]{yellow}

\impostorI[shift={(15,0)}]{violet}{gray}{green}{red}
\end{tikzpicture}
\end{FHZtcbAmongUs}

\subsection{There are emotions on your Eyes}

The options to draw emotional eyes are:
\begin{FHZtcbAmongUs}[listing only]
\amongUsEyesAngryI[<options>]{EyeColor}
\amongUsEyesVeryangryI[<options>]{EyeColor}
\amongUsEyesHappyI[<options>]{EyeColor}
\amongUsEyesScaredI[<options>]{EyeColor}
\end{FHZtcbAmongUs}
\noindent
and respective \texttt{Style II} version.

\begin{FHZtcbAmongUs}[title=Are you angry?]
\begin{tikzpicture}[every path/.style={very thick}]
  \amongUsBackpackI{yellow}
  \amongUsBodyI{yellow}
  \amongUsEyesAngryI{cyan}

  \begin{scope}[shift={(5,0)}]
    \amongUsBackpackI{red}
    \amongUsBodyI{red}
    \amongUsEyesVeryangryI{blue}
  \end{scope}

  \begin{scope}[shift={(10,0)}]
    \amongUsBackpackI{blue}
    \amongUsBodyI{blue}
    \amongUsEyesVeryangryI{orange}
    \impostorSmile{black}
    \impostorTeeth{white}
  \end{scope}
\end{tikzpicture}
\end{FHZtcbAmongUs}

\begin{FHZtcbAmongUs}[title=Are you scared or is that a smile?]
\begin{tikzpicture}[every path/.style={very thick}]
  \amongUsBackpackI{yellow!60!green}
  \amongUsBodyI{yellow!60!green}
  \amongUsEyesScaredI{cyan!90!red}

  \begin{scope}[shift={(5,0)}]
    \amongUsBackpackI{red!75!purple}
    \amongUsBodyI{red!75!purple}
    \amongUsEyesHappyI{green!50!orange}
  \end{scope}

  \begin{scope}[shift={(10,0)}]
    \amongUsBackpackI{blue!70!white}
    \amongUsBodyI{blue!70!white}
    \amongUsEyesHappyI{orange!75!black}
    \impostorSmile{black}
    \impostorTeeth{white}
  \end{scope}
\end{tikzpicture}
\end{FHZtcbAmongUs}

\subsection{That's a {\TikZ} impostor!}

Let's just create an example unifying impostor, hands and a crew member. The option \verb|xscale=-1| is used to create a mirror effect to draw the left hand from the original right hand design.\footnote{A future release might have starred options to directly insert left hands.}

\begin{FHZtcbAmongUs}[title=Watch out! That's a {\TikZ}-impostor!]
\begin{tikzpicture}[every path/.style={very thick}]
  \impostorI{brown}{cyan}{black}{white}
  \amongUsHandsF[shift={(3.75,-1)}, rotate around={270:(0.5,2.5)},
    xscale=-1]{brown}
  \amongUsHandsG[shift={(1.5,-1)}]{brown}
  \begin{scope}[shift={(6,0)}]
    \amongUsI{yellow}{green}
    \amongUsHandsB[shift={(0,3)}]{yellow}
    \amongUsHandsB[xscale=-1, shift={(-4,3)}]{yellow}
  \end{scope}
\end{tikzpicture}
\end{FHZtcbAmongUs}

\subsection{Oh no! Now you are a Ghost!}

The following commands draw the ectoplasmic body and the full ghost adding its eyes.
\begin{FHZtcbAmongUs}[listing only]
\amongUsGhostBodyI[<options>]{BodyColor}
\amongUsGhostI[<options>]{BodyColor}{EyeColor}
\end{FHZtcbAmongUs}
and also \texttt{Style II} versions.

After meeting the impostor at the last frame, you are now a ghost. And there are no excuses if you find a angry ghost floating around.
\begin{FHZtcbAmongUs}[title=Oh no! Now you are a Ghost!]
\begin{tikzpicture}[every path/.style={very thick}]
  \amongUsBackpackI{red!35!white}
  \amongUsGhostBodyI{red!35!white}
  \amongUsEyesAngryI{brown}

  \begin{scope}[shift={(5,0)}]
    \amongUsGhostI{purple}{orange!50!white}
    \amongUsHandsC[shift={(2,0)}]{purple}
    \amongUsHandsE[shift={(5,0)},xscale=-1]{purple}
  \end{scope}

  \begin{scope}[shift={(15,0)}, xscale=-1]
    \amongUsGhostI{green!50!blue}{yellow!50!black}
    \amongUsHandsA[shift={(1,0)}]{green!50!blue}
    \amongUsHandsB[shift={(5,0)},xscale=-1]{green!50!blue}
  \end{scope}
\end{tikzpicture}
\end{FHZtcbAmongUs}

\subsection{There is a Amoonguss among us}

The Pokémon named Amoonguss is a fungus whose name is very similar to the game, so that another artist create a fan art exploring this idea.
\begin{FHZtcbEnumerate}
  \item \href{https://www.reddit.com/r/AmongUs/comments/insse3/there_is_one_ditto_amoonguss/}{Reddit -- u/Sarasinapellido -- There is one ditto amoonguss}: Main discussion about the design.

  \begin{enumerate}
    \item \href{https://www.instagram.com/p/CEzs-cNKuQJ/}{Instagram -- leroleroart}: Original Amoonguss as among us design.
  \end{enumerate}
\end{FHZtcbEnumerate}

\begin{FHZtcbAmongUs}[title=There is one Ditto Amoonguss]
\begin{tikzpicture}[every path/.style={very thick}, scale=0.5]
  \amongUsBackpackI{yellow} 	 \amoongussBodyI{yellow}
  \amoongussNoseI{red} 				 \amoongussLeftHandI{yellow}
  \amoongussRightHandI{yellow} \amongUsEyesI{cyan}

  \amoongussI[shift={(8,0)}]{green!40!black}{orange}{red}{red}{red}
  \impostorSmile[shift={(9.5,1)}, scale=0.5]{white}

  \amoongussII[shift={(16,0)}]{purple}{gray}{green}{orange}{yellow}

  \begin{scope}[shift={(22,0)}]
    \amongUsI{teal!70}{red!25!purple}
    \amoongussNoseI{yellow}
    \amoongussRightHandI[shift={(0.5,0.5)}]{violet}
    \amongUsHandsA[shift={(5.5,0)},xscale=-1]{teal!70}
  \end{scope}
\end{tikzpicture}
\end{FHZtcbAmongUs}

\begin{FHZtcbAmongUs}[title=Wait! Is Amoonguss a ghost Pokémon?]
\begin{tikzpicture}[every path/.style={very thick}]
  \amoongussGhostI[scale=0.5]{lime}{magenta}
    {blue!50!white}{blue!50!white}{red}
  \begin{scope}[shift={(4,0)},scale=0.5]
    \amongUsBackpackI{lime!50!black}
    \amoongussGhostBodyI{lime!50!black}
    \amoongussNoseI{red}
    \amoongussLeftHandI{magenta!50!black}
    \amoongussRightHandI{magenta!50!black}
    \amongUsEyesAngryI{cyan!40!orange}
  \end{scope}
  \amoongussGhostII[shift={(14,0)},scale=0.5, xscale=-1]
  {magenta}{lime}{red}{red}{blue!50!white}
  \impostorSmile[shift={(11.8,1.8)}, scale=0.4, yscale=-1]{white}
  \begin{scope}[shift={(10,0)}, scale=0.5, xscale=-1]
    \amongUsBackpackII{cyan!50!black}
    \amoongussGhostBodyII{cyan!50!black}
    \amoongussNoseII{yellow}
    \amoongussLeftHandII{green!50!black}
    \amoongussRightHandII{green!50!black}
    \amongUsEyesHappyII{orange!40!olive}
    \impostorSmile[shift={(4,1)}, scale=0.5, xscale=-1]{white}
  \end{scope}
\end{tikzpicture}
\end{FHZtcbAmongUs}

\subsection{Don't forget Style II}

\texttt{Style II} should not be forget, and it also can be combined with ghost, hands and eyes emotions.
\begin{FHZtcbAmongUs}[title=Style II are looking back to you]
\begin{tikzpicture}[every path/.style={very thick}, scale=0.5, xscale=-1]
  \amongUsBackpackII{yellow} \amongUsBodyII{yellow}
  \amongUsEyesAngryII{cyan}  \impostorSmile{black}
  \impostorTeeth{white}
  \begin{scope}[shift={(6,0)}]
    \amongUsBackpackII{blue} \amongUsGhostBodyII{blue}
    \amongUsEyesHappyII{orange!75!black} \amongUsHandsE[shift={(2,0)}]{blue}
    \amongUsHandsG[shift={(3,1)}, xscale=-1, rotate around={90:(0,1)}]{blue}
  \end{scope}
  \begin{scope}[shift={(12,0)}]
    \amongUsBackpackII{red} \amongUsGhostBodyII{red}
    \amongUsEyesVeryangryII{violet}
    \impostorSmile{black} \impostorTeeth{white}
  \end{scope}
  \begin{scope}[shift={(17,0)}]
    \amongUsBackpackII{orange} \amongUsBodyII{orange}
    \amongUsEyesScaredII{blue}
    \amongUsHandsA{orange} \amongUsHandsD[shift={(4,0)}, xscale=-1]{orange}
  \end{scope}
  \amongUsGhostII[shift={(22,0)}]{lime}{red}
  \impostorII[shift={(27,0)}]{green!75!red}{gray}{black}{green}
\end{tikzpicture}
\end{FHZtcbAmongUs}

\section{Using with own \texttt{.sty} file}

\subsection{Use as watermark}

The chosen package to add watermarks is
\begin{FHZtcbAmongUs}[listing only]
\usepackage{eso-pic}
\end{FHZtcbAmongUs}

A \texttt{.sty} file has been created to insert Among us characters from the package \texttt{tikz-among-us}, which syntax is
\begin{FHZtcbAmongUs}[listing only]
\usepackage[cor=<color>,<FG/BG>,type=<0/1>]{tikz-among-us-watermark-eso-pic}
\end{FHZtcbAmongUs}

The options are
\begin{FHZtcbEnumerate}
  \item cor=<color>
  \begin{itemize}
    \item default color is red
  \end{itemize}
  \item FG (default option) \textsl{OR} BG
  \begin{itemize}
    \item These options select between \texttt{{\textbackslash}AddToShipoutPictureFG} and \texttt{{\textbackslash}AddToShipoutPictureBG} from the package \texttt{eso-pic}.
  \end{itemize}
  \item type=<number>
  \begin{itemize}
    \item number can be either 0 (default if empty) for \texttt{Original Style} \textsf{OR} 1 for \texttt{Style I}. \texttt{Style II} has not been prepared, although any user can copy and edit the syntax at will.
  \end{itemize}
\end{FHZtcbEnumerate}

The package \texttt{kvoptions} have been used to provide flexible command with direct access to the options values in \texttt{cor} and \texttt{type}, and a simple true/false statement with \texttt{FG} and \texttt{BG}.
Any other kind or variation of watermark can be achieved by directing setting values to each \texttt{<parameter>} in:
\begin{FHZtcbAmongUs}[listing only]
\put(<X>,<Y>){\scalebox{<factor>}{\rotatebox{<degrees>}{\usebox\myboxAmongUs}}}
\end{FHZtcbAmongUs}
\noindent
where \texttt{{\textbackslash}myboxAmongUs} must be previously defined as
\begin{FHZtcbAmongUs}[listing only]
\myboxAmongUs\savebox\myboxAmongUs{%
  \tikz[color=<color>, opacity=<factor>]
    \node{\amongUsOriginal{<color>}{white}};
}
\end{FHZtcbAmongUs}

The following box presents some possible combinations of parameters which results are presented at \autoref{fig:fig_AmongUg}.
\begin{FHZtcbAmongUs}[listing only]
\usepackage{tikz-among-us-watermark-eso-pic}
\usepackage[FG]{tikz-among-us-watermark-eso-pic}
\usepackage[type=0]{tikz-among-us-watermark-eso-pic}

\usepackage[cor=blue]{tikz-among-us-watermark-eso-pic}
\usepackage[cor=green,FG]{tikz-among-us-watermark-eso-pic}

\usepackage[BG]{tikz-among-us-watermark-eso-pic}
\usepackage[cor=green!80!black,BG]{tikz-among-us-watermark-eso-pic}
\usepackage[cor=orange,type=0]{tikz-among-us-watermark-eso-pic}

\usepackage[cor=yellow!80!black,FG,type=0]{tikz-among-us-watermark-eso-pic}
\usepackage[cor=orange,BG,type=0]{tikz-among-us-watermark-eso-pic}
\usepackage[BG,type=1]{tikz-among-us-watermark-eso-pic}

\usepackage[cor=pink,type=1]{tikz-among-us-watermark-eso-pic}
\usepackage[cor=teal,FG,type=1]{tikz-among-us-watermark-eso-pic}
\usepackage[cor=brown,BG,type=1]{tikz-among-us-watermark-eso-pic}
\end{FHZtcbAmongUs}

\begin{figure}[htb] % [htpb]
  \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_01} \hfill
  \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_02} \hfill
  \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_03} \hfill
  \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_04} \\
  \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_05} \hfill
  \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_06} \hfill
  \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_07} \hfill
  \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_08} \\
% \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_09} \\
  \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_10} \hfill
  \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_11} \hfill
  \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_12} \hfill
  \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_13}
  \caption{Example of each presented combination of watermark.}
  \label{fig:fig_AmongUg}
\end{figure}

The selected combination used in this documentation is
\begin{FHZtcbAmongUs}[listing only]
\usepackage[cor=violet!70!white,BG,type=1]{tikz-among-us-watermark-eso-pic}
\end{FHZtcbAmongUs}

\subsection{Use as page number}

The required packages are:
\begin{FHZtcbAmongUs}[listing only]
\usepackage{fancyhdr}
\end{FHZtcbAmongUs}
The package \texttt{fancyhdr} enables the user to edit headers and footers. I present a simple possibility to use the Among us characters in the footer of each page, such as the ones in this documentation.

The central core of the idea is to shift the position of the \verb|\amongUsI|, scale it to match its center around the displacement of the command \verb|\thepage| -- that inserts the page's number -- and \texttt{rotate around} using some math to rotate to body around its center.
In the example below, it turns 45 degrees each new page, creating the idea of a body floating around.

The following command just changes the footer. To apply other options check the package \texttt{fancyhdr}.
\begin{FHZtcbAmongUs}[listing only]
\fancyfoot[RO,LE]{%
  \begin{tikzpicture}
    \amongUsI[rotate around={45*(\thepage-1):(1.75,2.3)},
      scale=0.25, shift={(5,7)}]{yellow}{cyan}
    \node at (1.75,2.3) {\thepage};
  \end{tikzpicture}
}
\end{FHZtcbAmongUs}

\section{Using inside other packages}

\subsection{Use as watermark in tcolorbox}

The package \texttt{tcolorbox} is one of the most versatile packages of all {\LaTeX}. One of its feature is the possibility to create boxes with many styles, including boxes with watermarks as presented in page 174 of the \texttt{tcolorbox} manual (\texttt{/tcb/watermark tikz)}.
\begin{FHZtcbAmongUs}[listing only]
\usepackage{tcolorbox}
\end{FHZtcbAmongUs}

The very implementation used in this report to create enumerated list with some Among us floating around is:
\begin{FHZtcbAmongUs}[listing only]
\newtcolorbox{FHZboxEnumerateStyle}{
  enhanced,
  colback=orange!15!white,
  colframe=orange!50!black,
  watermark tikz={\tikz
    \node[opacity=0.4, rotate around={-45:(1.75,2.3)}]
      {\amongUsOriginal{blue}{white}};
    \node[opacity=0.4, rotate around={45:(1.75,2.3)}] at (5,0)
      {\amongUsOriginal{pink}{white}};
    \node[opacity=0.4, rotate around={-135:(1.75,2.3)}] at (10,0)
      {\amongUsOriginal{green}{white}};
    \node[opacity=0.4, rotate around={135:(1.75,2.3)}] at (15,0)
      {\amongUsOriginal{olive}{white}{black}{white}};
  }
}
\newenvironment{FHZtcbEnumerate}{%
  \begin{FHZboxEnumerateStyle}\begin{enumerate}}
    {\end{enumerate}\end{FHZboxEnumerateStyle}
}
\end{FHZtcbAmongUs}

\begin{FHZtcbEnumerate}
  \item This is an example of a \texttt{enumerate} list inside a \texttt{tcolorbox} with \texttt{tikz-among-us} as watermark.
\end{FHZtcbEnumerate}


\subsection{Use as animation}

This example uses the following package
\begin{FHZtcbAmongUs}[listing only]
\usepackage{animate}
\end{FHZtcbAmongUs}

This example creates a variable from 0 to 360 to represent each degree of a full rotation.\footnote{Animation requires some PDF visualization software to properly work. Internet browsers are not normally suitable for this task.} Four Among us characters are placed around the screen by using the option \texttt{shift={(x0,y0)}} and then rotating them around each respective center of mass. In order to achieve this effect, the most left command must be \texttt{shift} and then \texttt{rotate around}, the opposite order will rotate around the given point by will shift the object relative center of rotation. To make a body rotate in the opposite direction it is just necessary to add a minus sign in front of the angle variable. Animation is present in \autoref{fig:anim_floating_around}.
\begin{FHZtcbAmongUs}[listing only]
\begin{animateinline}[controls,loop]{30}
  \multiframe{180}{rt=0+1}{%
    \begin{tikzpicture}
      \draw (-2,-10) rectangle (15,7);
      \useasboundingbox (-2,-10) rectangle (15,7);
      \amoongussI[shift={(\rt/9-2.5,-3)}, scale=0.3]
        {purple!40!black}{yellow}{green}{green}{red}
      \amongUsI[rotate around={2*\rt:(2,3)}]
        {orange}{blue}
      \amongUsGhostI[shift={(8,0)}, rotate around={-2*\rt:(2,3)}]
        {cyan}{orange}
      \amongUsII[shift={(0,-8)}, rotate around={2*\rt:(2,3)}]
        {red}{gray}
      \impostorI[shift={(8,-8)}, rotate around={-2*\rt:(2,3)}]
        {green!50!black}{cyan}{black}{white}
    \end{tikzpicture}
  }
\end{animateinline}
\end{FHZtcbAmongUs}


\begin{figure}[ht!]
  \begin{animateinline}[controls,loop]{30}
    \multiframe{180}{rt=0+1}{%
      \begin{tikzpicture}
        \draw (-2,-10) rectangle (15,7);
        \useasboundingbox (-2,-10) rectangle (15,7);
        \amoongussI[shift={(\rt/9-2.5,-3)}, scale=0.3]
          {purple!40!black}{yellow}{green}{green}{red}
        \amongUsI[rotate around={2*\rt:(2,3)}]
          {orange}{blue}
        \amongUsGhostI[shift={(8,0)}, rotate around={-2*\rt:(2,3)}]
          {cyan}{orange}
        \amongUsII[shift={(0,-8)}, rotate around={2*\rt:(2,3)}]
          {red}{gray}
        \impostorI[shift={(8,-8)}, rotate around={-2*\rt:(2,3)}]
          {green!50!black}{cyan}{black}{white}
      \end{tikzpicture}
    }
  \end{animateinline}
  \caption{Example of a floating around animation.}
  \label{fig:anim_floating_around}
\end{figure}

\section{Future features and ideas}

\begin{FHZtcbEnumerate}
  \item Add options for hands $\checkmark$
  \item Add options to different emotions through the eyes in styles I $\checkmark$ and II $\checkmark$
  \item Improve scale method $\checkmark$
  \item Draw a impostor design $\checkmark$
  \item Draw maps
  \item Create left and right hand options
  \begin{enumerate}
    \item Create a starred version of right hands as left hands
  \end{enumerate}
  \item Add other emotions than ``angry'' ones
  \begin{enumerate}
    \item Happy $\checkmark$
    \item Scared $\checkmark$
  \end{enumerate}
  \item Create ghost design $\checkmark$
  \item Create Pokémon Amoonguss design $\checkmark$
\end{FHZtcbEnumerate}

\section{Historic and version}

\begin{FHZtcbEnumerate}[leftmargin=3.5cm]
  \item[1.0.0 (2020-10-20):] Publication of the style with the original design and Styles I and II of shadows.
  \item[1.0.1 (2020-10-23):] Minor typos have been corrected.
  \item[1.1.0 (2020-10-31):] Added new features (both \texttt{Styles})
    \begin{itemize}[leftmargin=-2cm]
      \item Hands;
      \item Eyes with emotions (Angry, Very angry, Happy, Scared);
      \item Impostor parts and full body;
      \item Ghost body;
      \item Pokémon Amoonguss parts and full body;
      \item \texttt{rounded corners} removed to improve \texttt{scale};
      \item Ghost Amoonguss body.
    \end{itemize}
\end{FHZtcbEnumerate}

\section{Implementation}

\subsection{tikz-among-us.sty}

\autoref{alg:tikz-among-us} shows the implementation of the package \texttt{tikz-among-us.sty}.

% -----------------------------
%, lastline = 10, firstnumber = 1, nolol, style = estiloExemAzul/Verm/Verd
\lstinputlisting[firstline = 5,  firstnumber = 1, label = {alg:tikz-among-us}, caption = {Package implementation}, style = estiloExemVerd]
{C:/Users/FHZ/Dropbox/LaTeX_pacotes/tex/latex/tikz-among-us/tikz-among-us.sty}
% -----------------------------

\subsection{tikz-among-us-fancyhdr.sty}

\autoref{alg:tikz-among-us-fancyhdr} shows the implementation of the package \texttt{tikz-among-us-fancyhdr.sty}.

% -----------------------------
% firstline = 1, lastline = 10, firstnumber = 1, nolol, style = estiloExemAzul/Verm/Verd
\lstinputlisting[firstline = 5,  firstnumber = 1, label = {alg:tikz-among-us-fancyhdr}, caption = {Package implementation}, style = estiloExemVerd]
{C:/Users/FHZ/Dropbox/LaTeX_pacotes/tex/latex/tikz-among-us/tikz-among-us-fancyhdr.sty}
% -----------------------------

\subsection{tikz-among-us-watermark-eso-pic.sty}

\autoref{alg:tikz-among-us-watermark-eso-pic} shows the implementation of the package \texttt{tikz-among-us-watermark-eso-pic.sty}.

% -----------------------------
% firstline = 1, lastline = 10, firstnumber = 1, nolol, style = estiloExemAzul/Verm/Verd
\lstinputlisting[firstline = 5,  firstnumber = 1, label = {alg:tikz-among-us-watermark-eso-pic}, caption = {Package implementation}, style = estiloExemVerd]
{C:/Users/FHZ/Dropbox/LaTeX_pacotes/tex/latex/tikz-among-us/tikz-among-us-watermark-eso-pic.sty}
% -----------------------------

\end{document}