Debian Codegraph @

texmf-dist/doc/latex/tikz-among-us/tikz-among-us.tex

raw
1 % !TeX spellcheck = en_US
2 % !TeX encoding = UTF-8
3 % =============================
4
5 % ========== Classe do documento, geometria, codificação e versão
6 \documentclass[12pt]{article}
7 \usepackage[a4paper,top=2cm,bottom=2cm,left=2cm,right=2cm]{geometry} % marginparwidth=1.75cm
8 % ----------
9 \usepackage[utf8]{inputenc}
10 \usepackage[T1]{fontenc}
11 % ==========
12
13 % ========== Pacotes
14 \usepackage{FHZ-packages-minimum}
15 \usepackage{FHZ-packages-TikZ-mydef}
16 % ==========
17 \usepackage{enumitem}
18 \usepackage{paracol}
19 \usepackage{multicol}
20 \usepackage[]{animate} %draft
21 % ==========
22 \usepackage{abstract}
23 \renewcommand{\abstractnamefont}{\normalfont\Large\bfseries}
24 %\renewcommand{\abstracttextfont}{\normalfont\Huge}
25 % ==========
26
27 % ==========
28 \usepackage{FHZ-textos}
29 % ==========
30
31 % =================== Formatações e marca d'água em arquivos de estilos .sty
32 % ---------- Formatacao -- hf
33 \usepackage{FHZ-formatacao-hf-headings_h_R_thepage}
34 % ---------- Formatacao -- hyperref
35 \usepackage[07]{FHZ-formatacao-hyperref-opt}
36 % ===================
37
38 % ========== Novos comandos para inserir figuras e TikZ de forma padronizada
39 \usepackage{FHZ-figures-TikZ-IEEE}
40 % ==========
41
42 % ========== Capa
43 \usepackage{FHZ-capa-article}
44 % ==========
45
46 \usepackage{tikz-among-us}
47 \usepackage{tikz-among-us-fancyhdr}
48 \usepackage[cor=violet!70!white,BG,type=1]{tikz-among-us-watermark-eso-pic}
49
50 %\usepackage{FHZ-tcolorbox-01}
51
52 \usepackage{FHZ-listings-showexpl-style}
53 \lstset{style=estiloBaseGeral,
54 frame=none,
55 keywordstyle=\color{blue}
56 }
57
58 \usepackage[skins,listings,breakable,raster]{tcolorbox}
59 \tcbuselibrary{listings}
60
61 \newtcblisting{FHZtcbAmongUs}[1][]{ %
62 enhanced,
63 colback=cyan!5!white, colframe=violet!75!black, fonttitle=\large\bfseries,
64 colbacktitle=violet!85!black,
65 listing and text, breakable,
66 after={\par\vspace{0.5\baselineskip}\noindent},
67 listing options={style=estiloTcbAzul},
68 #1
69 }
70
71 \newtcolorbox{FHZboxEnumerateStyle}{
72 enhanced, breakable,
73 colback=orange!15!white,
74 colframe=orange!50!black,
75 watermark tikz={\tikz
76 \node[opacity=0.4, rotate around={-45:(1.75,2.3)}]{\amongUsOriginal{blue}{white}};
77 \node[opacity=0.4, rotate around={45:(1.75,2.3)}] at (5,0) {\amongUsOriginal{pink}{white}};
78 \node[opacity=0.4, rotate around={-135:(1.75,2.3)}] at (10,0) {\amongUsOriginal{green}{white}};
79 \node[opacity=0.4, rotate around={135:(1.75,2.3)}] at (15,0) {\amongUsOriginal{olive}{white}{black}{white}};
80 }
81 }
82 \newenvironment{FHZtcbEnumerate}{%
83 \begin{FHZboxEnumerateStyle}\begin{enumerate}}
84 {\end{enumerate}\end{FHZboxEnumerateStyle}
85 }
86
87 % ========== Dados capa folha rosto ========== Sempre crie uma cópia local
88 \newcommand{\edicao}{1}
89 \newcommand{\versao}{1.2.0}
90 % ======================
91 \newcommand{\textoEdicao}{Edition}
92 \newcommand{\textoVersao}{Version}
93 \newcommand{\textoCopyright}{}
94 % ======================
95 \newcommand{\Universidade}{}
96 \newcommand{\Curso}{} %{Curso --}
97 \newcommand{\Departamento}{}
98 % ---
99 \newcommand{\AutorA}{\textbf{FHZ}}
100 \newcommand{\AutorB}{}
101 \newcommand{\AutorC}{}
102 \newcommand{\AutorD}{}
103 % ---
104 \newcommand{\Titulo}{\textbf{There is a {\TikZ}-Impostor Among us}}
105 % ---
106 \newcommand{\Cidade}{\textbf{tikz-among-us package}\\} %{Cidade --}
107 \newcommand{\Estado}{\url{https://www.ctan.org/pkg/tikz-among-us}\\} %{Estado --}
108 \newcommand{\Pais}{\textbf{Brasil} -- \textbf{{\today} -- \textoVersao: \versao}}
109 \newcommand{\Mes}{}
110 \newcommand{\Ano}{}
111 % ---
112 \newcommand{\de}{}
113 % ---
114 \newcommand{\textoFolhaRosto}{%
115 }
116 % ---
117 \newcommand{\OrientadorA}{}
118 \newcommand{\OrientadorB}{}
119 \newcommand{\textoOrientador}{}
120 \newcommand{\textoCoOrientador}{}
121 % ====================== Input_Folha_Rosto_Livro_Versao
122
123 % ========== Hypersetup local
124 \hypersetup{pdfinfo={
125 Title={\Titulo},
126 Author={\AutorA} %,\AutorB
127 }}
128 % ==========
129
130 \begin{document}
131 % ========== Capas
132 {\FHZCapaArticleCabecalho}
133 % ==========
134
135 \begin{abstract}
136 \begin{FHZboxEnumerateStyle}
137 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.
138 \end{FHZboxEnumerateStyle}
139 \end{abstract}
140
141 \begin{FHZboxEnumerateStyle}
142 \begin{multicols}{2}
143 {\small \tableofcontents}
144 \end{multicols}
145 \end{FHZboxEnumerateStyle}
146 \section{Introduction}
147
148 The following packages are used in the examples and applications.
149 \begin{FHZtcbEnumerate}
150 \item \href{https://www.ctan.org/pkg/tikz}{{\CTAN} -- tikz}
151
152 Whose following packages are always used as reference of quality and capabilities:
153 \begin{enumerate}
154 \begin{multicols}{2}
155 \item \href{https://www.ctan.org/pkg/tikzducks}{{\CTAN} -- tikzducks}
156 \item \href{https://www.ctan.org/pkg/tikzmarmots}{{\CTAN} -- tikzmarmots}
157 \end{multicols}
158 \end{enumerate}
159 \begin{multicols}{2}
160 % \item \href{https://www.ctan.org/pkg/adjustbox}{{\CTAN} -- adjustbox}
161 \item \href{https://www.ctan.org/pkg/tcolorbox}{{\CTAN} -- tcolorbox}
162 \item \href{https://www.ctan.org/pkg/fancyhdr}{{\CTAN} -- fancyhdr}
163 \item \href{https://www.ctan.org/pkg/eso-pic}{{\CTAN} -- eso-pic}
164 \item \href{https://www.ctan.org/pkg/animate}{{\CTAN} -- animate}
165 \end{multicols}
166 \end{FHZtcbEnumerate}
167
168 The basic concept started as a question at {\TeXStackExchange} and after some research some new ideas have been found to improve the initial sketch.
169 \begin{FHZtcbEnumerate}
170 \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:
171 \begin{enumerate}
172 \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.
173 \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.
174 \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.
175 \end{enumerate}
176 \end{FHZtcbEnumerate}
177
178 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.
179 \begin{FHZtcbEnumerate}
180 \item \href{https://play.google.com/store/apps/details?id=com.innersloth.spacemafia&hl=pt_BR&gl=US}{AmongUs original game to smartphones}
181 \end{FHZtcbEnumerate}
182
183 \section{Using the package}
184
185 There are three base style files.
186 \begin{FHZtcbAmongUs}[listing only]
187 \usepackage{tikz-among-us}
188 \usepackage{tikz-among-us-fancyhdr}
189 \usepackage{tikz-among-us-watermark-eso-pic}
190 \end{FHZtcbAmongUs}
191
192 A brief description follows:
193 \begin{FHZtcbEnumerate}
194 \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.
195
196 \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.
197
198 \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.
199 \end{FHZtcbEnumerate}
200
201 \section{Examples -- tikz-among-us}
202
203 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.
204 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}.
205 In this sense, I chose to keep both styles and using the roman number as a suffix of each command.
206
207 \subsection{Styles I e II}
208
209 The basic syntax to insert each character is:
210 \begin{FHZtcbAmongUs}[listing only]
211 \amongUsI[<options>]{<BodyColor>}{<EyeColor>}
212 \end{FHZtcbAmongUs}
213 \noindent
214 and for each body part, the commands are:
215 \begin{FHZtcbAmongUs}[listing only]
216 \amongUsBackpackI[<options>]{<BodyColor>}
217 \amongUsBodyI[<options>]{<BodyColor>}
218 \amongUsEyesI[<options>]{<EyeColor>}
219 \end{FHZtcbAmongUs}
220 \noindent
221 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.
222 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.
223
224 This is the basic use of the package.
225
226 \begin{paracol}{2}
227 \begin{FHZtcbAmongUs}[title=Basic Use -- Style I]
228 \begin{tikzpicture}
229 \amongUsI{yellow}{cyan}
230 \end{tikzpicture}
231 \end{FHZtcbAmongUs}
232 \switchcolumn
233 \begin{FHZtcbAmongUs}[title=Basic Use -- Style II]
234 \begin{tikzpicture}
235 \amongUsII{yellow}{cyan}
236 \end{tikzpicture}
237 \end{FHZtcbAmongUs}
238 \end{paracol}
239
240 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.
241 On the other hand, the \texttt{shift=\{(x,y)\}} command of the environment \texttt{scope} is a well suitable method to move each part.
242
243 \begin{paracol}{2}
244 \begin{FHZtcbAmongUs}[title=Each body part -- Style I]
245 \begin{tikzpicture}
246 \amongUsBackpackI
247 [shift={(0,0)}]{blue}
248 \amongUsBodyI
249 [shift={(0.6,0)}]{blue}
250 \amongUsEyesI
251 [shift={(3,0)}]{cyan}
252 \end{tikzpicture}
253 \end{FHZtcbAmongUs}
254 \switchcolumn
255 \begin{FHZtcbAmongUs}[title=Each body part -- Style II]
256 \begin{tikzpicture}
257 \amongUsBackpackII
258 [shift={(0,0)}]{green}
259 \amongUsBodyII
260 [shift={(0.6,0)}]{green}
261 \amongUsEyesII
262 [shift={(3,0)}]{red}
263 \end{tikzpicture}
264 \end{FHZtcbAmongUs}
265 \end{paracol}
266
267 %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.
268
269 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.
270 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$.
271
272 \begin{FHZtcbAmongUs}[title=Scaling with scale, sidebyside, righthand ratio=0.40]
273 \begin{tikzpicture}
274 \amongUsI[scale=0.5]{cyan}{gray}
275 \amongUsI[scale=0.3, shift={(10,3)},
276 rotate around={180:(1.75,2.3)}]
277 {green!50!black}{cyan}
278 \amongUsI[scale=0.1, shift={(50.5,0)},
279 rotate around={45:(1.75,2.3)}]
280 {orange!50!black}{orange}
281 \end{tikzpicture}
282 \end{FHZtcbAmongUs}
283
284 \subsection{Style -- Original}
285
286 The original design is much more simplistic.
287
288 \begin{FHZtcbAmongUs}[title=Original Design -- Inside \textit{tikzpicture}]
289 \begin{tikzpicture}
290 \node at (0,0) {\amongUsOriginal{blue}{orange}};
291 \node at (5,0) {\amongUsOriginal{orange}{blue}};
292 \node[scale=0.25] at (10,0) {\amongUsOriginal{red}{cyan}};
293 \end{tikzpicture}
294 \end{FHZtcbAmongUs}
295
296 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.
297
298 \begin{FHZtcbAmongUs}[title=Original Design -- Outside \textit{tikzpicture}]
299 \amongUsOriginal{black}{cyan}
300 \amongUsOriginal[angry]{gray}{cyan}
301 \amongUsOriginal[very angry]{white}{cyan}
302 \end{FHZtcbAmongUs}
303
304 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.
305
306 \begin{FHZtcbAmongUs}[title=Original Design -- Inside \textit{tikzpicture} with \textit{node} options]
307 \begin{tikzpicture}[every path/.style={very thick}]
308 \node[red, fill=black] at (0,0) {\amongUsOriginal{white}{cyan}};
309 \node[blue, fill=violet] at (5,0) {\amongUsOriginal[angry]{white}{cyan}};
310 \node[yellow, fill=green] at (10,0)
311 {\amongUsOriginal[very angry]{black}{cyan}};
312 \end{tikzpicture}
313 \end{FHZtcbAmongUs}
314
315 \subsection{Show me your Hands}
316
317 The following command is used to present some hands
318 \begin{FHZtcbAmongUs}[listing only]
319 \amongUsHands<X>[<options>]{HandColor}
320 \end{FHZtcbAmongUs}
321 \noindent
322 where <X> is a letter from $A$ to $G$.
323
324 \begin{FHZtcbAmongUs}[title=Hands]
325 \begin{tikzpicture}[every path/.style={very thick}]
326 \amongUsHandsA[shift={(0,0)}]{yellow}
327 \amongUsHandsB[shift={(2,0)}]{red}
328 \amongUsHandsC[shift={(4,0)}]{blue}
329 \amongUsHandsD[shift={(6,0)}]{green!50!black}
330 \amongUsHandsE[shift={(8,0)}]{orange}
331 \amongUsHandsF[shift={(10,0)}]{violet}
332 \amongUsHandsG[shift={(12,0)}]{gray}
333 \end{tikzpicture}
334 \end{FHZtcbAmongUs}
335
336 \subsection{Smile as an Impostor}
337
338 The following commands are used to create the impostor design
339 \begin{FHZtcbAmongUs}[listing only]
340 \impostorSmile[<options>]{SmileColor}
341 \impostorTeethUp[<options>]{SmileColor}
342 \impostorTeethLw[<options>]{TeethColor}
343 \impostorTeeth[<options>]{TeethColor}
344 \impostorI[<options>]{BodyColor}{EyeColor}{SmileColor}{TeethColor}
345 \impostorII[<options>]{BodyColor}{EyeColor}{SmileColor}{TeethColor}
346 \end{FHZtcbAmongUs}
347
348 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|.
349
350 \begin{FHZtcbAmongUs}[title=Why so serious? Smile!]
351 \begin{tikzpicture}[every path/.style={very thick}]
352 \amongUsI[shift={(5,0)}]{green}{violet}
353 \impostorSmile[shift={(5,0)}]{black}
354 \impostorTeethUp[shift={(5,0)}]{white}
355 \impostorTeethLw[shift={(5,0)}]{white}
356
357 \amongUsI[shift={(10,0)}]{orange}{red}
358 \impostorTeeth[shift={(10,0)}]{yellow}
359
360 \impostorI[shift={(15,0)}]{violet}{gray}{green}{red}
361 \end{tikzpicture}
362 \end{FHZtcbAmongUs}
363
364 \subsection{There are emotions on your Eyes}
365
366 The options to draw emotional eyes are:
367 \begin{FHZtcbAmongUs}[listing only]
368 \amongUsEyesAngryI[<options>]{EyeColor}
369 \amongUsEyesVeryangryI[<options>]{EyeColor}
370 \amongUsEyesHappyI[<options>]{EyeColor}
371 \amongUsEyesScaredI[<options>]{EyeColor}
372 \end{FHZtcbAmongUs}
373 \noindent
374 and respective \texttt{Style II} version.
375
376 \begin{FHZtcbAmongUs}[title=Are you angry?]
377 \begin{tikzpicture}[every path/.style={very thick}]
378 \amongUsBackpackI{yellow}
379 \amongUsBodyI{yellow}
380 \amongUsEyesAngryI{cyan}
381
382 \begin{scope}[shift={(5,0)}]
383 \amongUsBackpackI{red}
384 \amongUsBodyI{red}
385 \amongUsEyesVeryangryI{blue}
386 \end{scope}
387
388 \begin{scope}[shift={(10,0)}]
389 \amongUsBackpackI{blue}
390 \amongUsBodyI{blue}
391 \amongUsEyesVeryangryI{orange}
392 \impostorSmile{black}
393 \impostorTeeth{white}
394 \end{scope}
395 \end{tikzpicture}
396 \end{FHZtcbAmongUs}
397
398 \begin{FHZtcbAmongUs}[title=Are you scared or is that a smile?]
399 \begin{tikzpicture}[every path/.style={very thick}]
400 \amongUsBackpackI{yellow!60!green}
401 \amongUsBodyI{yellow!60!green}
402 \amongUsEyesScaredI{cyan!90!red}
403
404 \begin{scope}[shift={(5,0)}]
405 \amongUsBackpackI{red!75!purple}
406 \amongUsBodyI{red!75!purple}
407 \amongUsEyesHappyI{green!50!orange}
408 \end{scope}
409
410 \begin{scope}[shift={(10,0)}]
411 \amongUsBackpackI{blue!70!white}
412 \amongUsBodyI{blue!70!white}
413 \amongUsEyesHappyI{orange!75!black}
414 \impostorSmile{black}
415 \impostorTeeth{white}
416 \end{scope}
417 \end{tikzpicture}
418 \end{FHZtcbAmongUs}
419
420 \subsection{That's a {\TikZ} impostor!}
421
422 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.}
423
424 \begin{FHZtcbAmongUs}[title=Watch out! That's a {\TikZ}-impostor!]
425 \begin{tikzpicture}[every path/.style={very thick}]
426 \impostorI{brown}{cyan}{black}{white}
427 \amongUsHandsF[shift={(3.75,-1)}, rotate around={270:(0.5,2.5)},
428 xscale=-1]{brown}
429 \amongUsHandsG[shift={(1.5,-1)}]{brown}
430 \begin{scope}[shift={(6,0)}]
431 \amongUsI{yellow}{green}
432 \amongUsHandsB[shift={(0,3)}]{yellow}
433 \amongUsHandsB[xscale=-1, shift={(-4,3)}]{yellow}
434 \end{scope}
435 \end{tikzpicture}
436 \end{FHZtcbAmongUs}
437
438 \subsection{Oh no! Now you are a Ghost!}
439
440 The following commands draw the ectoplasmic body and the full ghost adding its eyes.
441 \begin{FHZtcbAmongUs}[listing only]
442 \amongUsGhostBodyI[<options>]{BodyColor}
443 \amongUsGhostI[<options>]{BodyColor}{EyeColor}
444 \end{FHZtcbAmongUs}
445 and also \texttt{Style II} versions.
446
447 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.
448 \begin{FHZtcbAmongUs}[title=Oh no! Now you are a Ghost!]
449 \begin{tikzpicture}[every path/.style={very thick}]
450 \amongUsBackpackI{red!35!white}
451 \amongUsGhostBodyI{red!35!white}
452 \amongUsEyesAngryI{brown}
453
454 \begin{scope}[shift={(5,0)}]
455 \amongUsGhostI{purple}{orange!50!white}
456 \amongUsHandsC[shift={(2,0)}]{purple}
457 \amongUsHandsE[shift={(5,0)},xscale=-1]{purple}
458 \end{scope}
459
460 \begin{scope}[shift={(15,0)}, xscale=-1]
461 \amongUsGhostI{green!50!blue}{yellow!50!black}
462 \amongUsHandsA[shift={(1,0)}]{green!50!blue}
463 \amongUsHandsB[shift={(5,0)},xscale=-1]{green!50!blue}
464 \end{scope}
465 \end{tikzpicture}
466 \end{FHZtcbAmongUs}
467
468 \subsection{There is a Amoonguss among us}
469
470 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.
471 \begin{FHZtcbEnumerate}
472 \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.
473
474 \begin{enumerate}
475 \item \href{https://www.instagram.com/p/CEzs-cNKuQJ/}{Instagram -- leroleroart}: Original Amoonguss as among us design.
476 \end{enumerate}
477 \end{FHZtcbEnumerate}
478
479 \begin{FHZtcbAmongUs}[title=There is one Ditto Amoonguss]
480 \begin{tikzpicture}[every path/.style={very thick}, scale=0.5]
481 \amongUsBackpackI{yellow} \amoongussBodyI{yellow}
482 \amoongussNoseI{red} \amoongussLeftHandI{yellow}
483 \amoongussRightHandI{yellow} \amongUsEyesI{cyan}
484
485 \amoongussI[shift={(8,0)}]{green!40!black}{orange}{red}{red}{red}
486 \impostorSmile[shift={(9.5,1)}, scale=0.5]{white}
487
488 \amoongussII[shift={(16,0)}]{purple}{gray}{green}{orange}{yellow}
489
490 \begin{scope}[shift={(22,0)}]
491 \amongUsI{teal!70}{red!25!purple}
492 \amoongussNoseI{yellow}
493 \amoongussRightHandI[shift={(0.5,0.5)}]{violet}
494 \amongUsHandsA[shift={(5.5,0)},xscale=-1]{teal!70}
495 \end{scope}
496 \end{tikzpicture}
497 \end{FHZtcbAmongUs}
498
499 \begin{FHZtcbAmongUs}[title=Wait! Is Amoonguss a ghost Pokémon?]
500 \begin{tikzpicture}[every path/.style={very thick}]
501 \amoongussGhostI[scale=0.5]{lime}{magenta}
502 {blue!50!white}{blue!50!white}{red}
503 \begin{scope}[shift={(4,0)},scale=0.5]
504 \amongUsBackpackI{lime!50!black}
505 \amoongussGhostBodyI{lime!50!black}
506 \amoongussNoseI{red}
507 \amoongussLeftHandI{magenta!50!black}
508 \amoongussRightHandI{magenta!50!black}
509 \amongUsEyesAngryI{cyan!40!orange}
510 \end{scope}
511 \amoongussGhostII[shift={(14,0)},scale=0.5, xscale=-1]
512 {magenta}{lime}{red}{red}{blue!50!white}
513 \impostorSmile[shift={(11.8,1.8)}, scale=0.4, yscale=-1]{white}
514 \begin{scope}[shift={(10,0)}, scale=0.5, xscale=-1]
515 \amongUsBackpackII{cyan!50!black}
516 \amoongussGhostBodyII{cyan!50!black}
517 \amoongussNoseII{yellow}
518 \amoongussLeftHandII{green!50!black}
519 \amoongussRightHandII{green!50!black}
520 \amongUsEyesHappyII{orange!40!olive}
521 \impostorSmile[shift={(4,1)}, scale=0.5, xscale=-1]{white}
522 \end{scope}
523 \end{tikzpicture}
524 \end{FHZtcbAmongUs}
525
526 \subsection{Don't forget Style II}
527
528 \texttt{Style II} should not be forget, and it also can be combined with ghost, hands and eyes emotions.
529 \begin{FHZtcbAmongUs}[title=Style II are looking back to you]
530 \begin{tikzpicture}[every path/.style={very thick}, scale=0.5, xscale=-1]
531 \amongUsBackpackII{yellow} \amongUsBodyII{yellow}
532 \amongUsEyesAngryII{cyan} \impostorSmile{black}
533 \impostorTeeth{white}
534 \begin{scope}[shift={(6,0)}]
535 \amongUsBackpackII{blue} \amongUsGhostBodyII{blue}
536 \amongUsEyesHappyII{orange!75!black} \amongUsHandsE[shift={(2,0)}]{blue}
537 \amongUsHandsG[shift={(3,1)}, xscale=-1, rotate around={90:(0,1)}]{blue}
538 \end{scope}
539 \begin{scope}[shift={(12,0)}]
540 \amongUsBackpackII{red} \amongUsGhostBodyII{red}
541 \amongUsEyesVeryangryII{violet}
542 \impostorSmile{black} \impostorTeeth{white}
543 \end{scope}
544 \begin{scope}[shift={(17,0)}]
545 \amongUsBackpackII{orange} \amongUsBodyII{orange}
546 \amongUsEyesScaredII{blue}
547 \amongUsHandsA{orange} \amongUsHandsD[shift={(4,0)}, xscale=-1]{orange}
548 \end{scope}
549 \amongUsGhostII[shift={(22,0)}]{lime}{red}
550 \impostorII[shift={(27,0)}]{green!75!red}{gray}{black}{green}
551 \end{tikzpicture}
552 \end{FHZtcbAmongUs}
553
554 \subsection{Nice curves with Style III}
555
556 This style is based on the answer given by {\TeXStackExchange}'s User \textbf{hpekristiansen}. This style uses the command \textit{controls} instead of the smooth plot with given coordinates as Style I and II.
557
558 \begin{FHZtcbAmongUs}[title=Style III strikes amongUs]
559 \begin{tikzpicture}
560 \amongUsIII{red}{blue}
561 \amongUsIII[xscale=-1,shift={(-12,0)}]{yellow}{blue}
562 \amongUsIII[shift={(12,0)},scale=0.5]{violet}{orange}
563 \amongUsIII[scale=-0.5,shift={(-30,-16)}]{blue}{green}
564 \end{tikzpicture}
565 \end{FHZtcbAmongUs}
566
567 \section{Using with own \texttt{.sty} file}
568
569 \subsection{Use as watermark}
570
571 The chosen package to add watermarks is
572 \begin{FHZtcbAmongUs}[listing only]
573 \usepackage{eso-pic}
574 \end{FHZtcbAmongUs}
575
576 A \texttt{.sty} file has been created to insert Among us characters from the package \texttt{tikz-among-us}, which syntax is
577 \begin{FHZtcbAmongUs}[listing only]
578 \usepackage[cor=<color>,<FG/BG>,type=<0/1>]{tikz-among-us-watermark-eso-pic}
579 \end{FHZtcbAmongUs}
580
581 The options are
582 \begin{FHZtcbEnumerate}
583 \item cor=<color>
584 \begin{itemize}
585 \item default color is red
586 \end{itemize}
587 \item FG (default option) \textsl{OR} BG
588 \begin{itemize}
589 \item These options select between \texttt{{\textbackslash}AddToShipoutPictureFG} and \texttt{{\textbackslash}AddToShipoutPictureBG} from the package \texttt{eso-pic}.
590 \end{itemize}
591 \item type=<number>
592 \begin{itemize}
593 \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.
594 \end{itemize}
595 \end{FHZtcbEnumerate}
596
597 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}.
598 Any other kind or variation of watermark can be achieved by directing setting values to each \texttt{<parameter>} in:
599 \begin{FHZtcbAmongUs}[listing only]
600 \put(<X>,<Y>){\scalebox{<factor>}{\rotatebox{<degrees>}{\usebox\myboxAmongUs}}}
601 \end{FHZtcbAmongUs}
602 \noindent
603 where \texttt{{\textbackslash}myboxAmongUs} must be previously defined as
604 \begin{FHZtcbAmongUs}[listing only]
605 \myboxAmongUs\savebox\myboxAmongUs{%
606 \tikz[color=<color>, opacity=<factor>]
607 \node{\amongUsOriginal{<color>}{white}};
608 }
609 \end{FHZtcbAmongUs}
610
611 The following box presents some possible combinations of parameters which results are presented at \autoref{fig:fig_AmongUg}.
612 \begin{FHZtcbAmongUs}[listing only]
613 \usepackage{tikz-among-us-watermark-eso-pic}
614 \usepackage[FG]{tikz-among-us-watermark-eso-pic}
615 \usepackage[type=0]{tikz-among-us-watermark-eso-pic}
616
617 \usepackage[cor=blue]{tikz-among-us-watermark-eso-pic}
618 \usepackage[cor=green,FG]{tikz-among-us-watermark-eso-pic}
619
620 \usepackage[BG]{tikz-among-us-watermark-eso-pic}
621 \usepackage[cor=green!80!black,BG]{tikz-among-us-watermark-eso-pic}
622 \usepackage[cor=orange,type=0]{tikz-among-us-watermark-eso-pic}
623
624 \usepackage[cor=yellow!80!black,FG,type=0]{tikz-among-us-watermark-eso-pic}
625 \usepackage[cor=orange,BG,type=0]{tikz-among-us-watermark-eso-pic}
626 \usepackage[BG,type=1]{tikz-among-us-watermark-eso-pic}
627
628 \usepackage[cor=pink,type=1]{tikz-among-us-watermark-eso-pic}
629 \usepackage[cor=teal,FG,type=1]{tikz-among-us-watermark-eso-pic}
630 \usepackage[cor=brown,BG,type=1]{tikz-among-us-watermark-eso-pic}
631 \end{FHZtcbAmongUs}
632
633 \begin{figure}[htb] % [htpb]
634 \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_01} \hfill
635 \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_02} \hfill
636 \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_03} \hfill
637 \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_04} \\
638 \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_05} \hfill
639 \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_06} \hfill
640 \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_07} \hfill
641 \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_08} \\
642 % \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_09} \\
643 \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_10} \hfill
644 \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_11} \hfill
645 \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_12} \hfill
646 \includegraphics[width = 0.20\linewidth]{Figuras/fig_AmongUs_13}
647 \caption{Example of each presented combination of watermark}
648 \label{fig:fig_AmongUg}
649 \end{figure}
650
651 The selected combination used in this documentation is
652 \begin{FHZtcbAmongUs}[listing only]
653 \usepackage[cor=violet!70!white,BG,type=1]{tikz-among-us-watermark-eso-pic}
654 \end{FHZtcbAmongUs}
655
656 \subsection{Use as page number}
657
658 The required packages are:
659 \begin{FHZtcbAmongUs}[listing only]
660 \usepackage{fancyhdr}
661 \end{FHZtcbAmongUs}
662 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.
663
664 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.
665 In the example below, it turns 45 degrees each new page, creating the idea of a body floating around.
666
667 The following command just changes the footer. To apply other options check the package \texttt{fancyhdr}.
668 \begin{FHZtcbAmongUs}[listing only]
669 \fancyfoot[RO,LE]{%
670 \begin{tikzpicture}
671 \amongUsI[rotate around={45*(\thepage-1):(1.75,2.3)},
672 scale=0.25, shift={(5,7)}]{yellow}{cyan}
673 \node at (1.75,2.3) {\thepage};
674 \end{tikzpicture}
675 }
676 \end{FHZtcbAmongUs}
677
678 \section{Using inside other packages}
679
680 \subsection{Use as watermark in tcolorbox}
681
682 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)}.
683 \begin{FHZtcbAmongUs}[listing only]
684 \usepackage{tcolorbox}
685 \end{FHZtcbAmongUs}
686
687 The very implementation used in this report to create enumerated list with some Among us floating around is:
688 \begin{FHZtcbAmongUs}[listing only]
689 \newtcolorbox{FHZboxEnumerateStyle}{
690 enhanced,
691 colback=orange!15!white,
692 colframe=orange!50!black,
693 watermark tikz={\tikz
694 \node[opacity=0.4, rotate around={-45:(1.75,2.3)}]
695 {\amongUsOriginal{blue}{white}};
696 \node[opacity=0.4, rotate around={45:(1.75,2.3)}] at (5,0)
697 {\amongUsOriginal{pink}{white}};
698 \node[opacity=0.4, rotate around={-135:(1.75,2.3)}] at (10,0)
699 {\amongUsOriginal{green}{white}};
700 \node[opacity=0.4, rotate around={135:(1.75,2.3)}] at (15,0)
701 {\amongUsOriginal{olive}{white}{black}{white}};
702 }
703 }
704 \newenvironment{FHZtcbEnumerate}{%
705 \begin{FHZboxEnumerateStyle}\begin{enumerate}}
706 {\end{enumerate}\end{FHZboxEnumerateStyle}
707 }
708 \end{FHZtcbAmongUs}
709
710 \begin{FHZtcbEnumerate}
711 \item This is an example of a \texttt{enumerate} list inside a \texttt{tcolorbox} with \texttt{tikz-among-us} as watermark.
712 \end{FHZtcbEnumerate}
713
714
715 \subsection{Use as animation}
716
717 This example uses the following package
718 \begin{FHZtcbAmongUs}[listing only]
719 \usepackage{animate}
720 \end{FHZtcbAmongUs}
721
722 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}.
723 \begin{FHZtcbAmongUs}[listing only]
724 \begin{animateinline}[controls,loop]{30}
725 \multiframe{180}{rt=0+1}{%
726 \begin{tikzpicture}
727 \draw (-2,-10) rectangle (15,7);
728 \useasboundingbox (-2,-10) rectangle (15,7);
729 \amoongussI[shift={(\rt/9-2.5,-3)}, scale=0.3]
730 {purple!40!black}{yellow}{green}{green}{red}
731 \amongUsI[rotate around={2*\rt:(2,3)}]
732 {orange}{blue}
733 \amongUsGhostI[shift={(8,0)}, rotate around={-2*\rt:(2,3)}]
734 {cyan}{orange}
735 \amongUsII[shift={(0,-8)}, rotate around={2*\rt:(2,3)}]
736 {red}{gray}
737 \impostorI[shift={(8,-8)}, rotate around={-2*\rt:(2,3)}]
738 {green!50!black}{cyan}{black}{white}
739 \end{tikzpicture}
740 }
741 \end{animateinline}
742 \end{FHZtcbAmongUs}
743
744
745 \begin{figure}[ht!]
746 \begin{animateinline}[controls,loop]{30}
747 \multiframe{180}{rt=0+1}{%
748 \begin{tikzpicture}
749 \draw (-2,-10) rectangle (15,7);
750 \useasboundingbox (-2,-10) rectangle (15,7);
751 \amoongussI[shift={(\rt/9-2.5,-3)}, scale=0.3]
752 {purple!40!black}{yellow}{green}{green}{red}
753 \amongUsI[rotate around={2*\rt:(2,3)}]
754 {orange}{blue}
755 \amongUsGhostI[shift={(8,0)}, rotate around={-2*\rt:(2,3)}]
756 {cyan}{orange}
757 \amongUsII[shift={(0,-8)}, rotate around={2*\rt:(2,3)}]
758 {red}{gray}
759 \impostorI[shift={(8,-8)}, rotate around={-2*\rt:(2,3)}]
760 {green!50!black}{cyan}{black}{white}
761 \end{tikzpicture}
762 }
763 \end{animateinline}
764 \caption{Example of a floating around animation}
765 \label{fig:anim_floating_around}
766 \end{figure}
767
768 \section{Future features and ideas}
769
770 \begin{FHZtcbEnumerate}
771 \item Add options for hands $\checkmark$
772 \item Add options to different emotions through the eyes in styles I $\checkmark$ and II $\checkmark$
773 \item Improve scale method $\checkmark$
774 \item Draw a impostor design $\checkmark$
775 \item Draw maps
776 \item Create left and right hand options
777 \begin{enumerate}
778 \item Create a starred version of right hands as left hands
779 \end{enumerate}
780 \item Add other emotions than ``angry'' ones
781 \begin{enumerate}
782 \item Happy $\checkmark$
783 \item Scared $\checkmark$
784 \end{enumerate}
785 \item Create ghost design $\checkmark$
786 \item Create Pokémon Amoonguss design $\checkmark$
787 \end{FHZtcbEnumerate}
788
789 \section{Historic and version}
790
791 \begin{FHZtcbEnumerate}[leftmargin=3.5cm]
792 \item[1.0.0 (2020-10-20):] Publication of the style with the original design and Styles I and II of shadows.
793 \item[1.0.1 (2020-10-23):] Minor typos have been corrected.
794 \item[1.1.0 (2020-10-31):] Added new features (both \texttt{Styles})
795 \begin{itemize}[leftmargin=-2cm]
796 \item Hands;
797 \item Eyes with emotions (Angry, Very angry, Happy, Scared);
798 \item Impostor parts and full body;
799 \item Ghost body;
800 \item Pokémon Amoonguss parts and full body;
801 \item \texttt{rounded corners} removed to improve \texttt{scale};
802 \item Ghost Amoonguss body.
803 \end{itemize}
804
805 \item[1.2.0 (2021-10-27):] Added Style III.
806 \end{FHZtcbEnumerate}
807
808 \section{Implementation}
809
810 \subsection{tikz-among-us.sty}
811
812 \autoref{alg:tikz-among-us} shows the implementation of the package \texttt{tikz-among-us.sty}.
813
814 % -----------------------------
815 %, lastline = 10, firstnumber = 1, nolol, style = estiloExemAzul/Verm/Verd
816 \lstinputlisting[firstline = 5, firstnumber = 1, label = {alg:tikz-among-us}, caption = {Package implementation}, style = estiloExemVerd]
817 {C:/Users/FHZ/Dropbox/LaTeX_pacotes/tex/latex/tikz-among-us/tikz-among-us.sty}
818 % -----------------------------
819
820 \subsection{tikz-among-us-fancyhdr.sty}
821
822 \autoref{alg:tikz-among-us-fancyhdr} shows the implementation of the package \texttt{tikz-among-us-fancyhdr.sty}.
823
824 % -----------------------------
825 % firstline = 1, lastline = 10, firstnumber = 1, nolol, style = estiloExemAzul/Verm/Verd
826 \lstinputlisting[firstline = 5, firstnumber = 1, label = {alg:tikz-among-us-fancyhdr}, caption = {Package implementation}, style = estiloExemVerd]
827 {C:/Users/FHZ/Dropbox/LaTeX_pacotes/tex/latex/tikz-among-us/tikz-among-us-fancyhdr.sty}
828 % -----------------------------
829
830 \subsection{tikz-among-us-watermark-eso-pic.sty}
831
832 \autoref{alg:tikz-among-us-watermark-eso-pic} shows the implementation of the package \texttt{tikz-among-us-watermark-eso-pic.sty}.
833
834 % -----------------------------
835 % firstline = 1, lastline = 10, firstnumber = 1, nolol, style = estiloExemAzul/Verm/Verd
836 \lstinputlisting[firstline = 5, firstnumber = 1, label = {alg:tikz-among-us-watermark-eso-pic}, caption = {Package implementation}, style = estiloExemVerd]
837 {C:/Users/FHZ/Dropbox/LaTeX_pacotes/tex/latex/tikz-among-us/tikz-among-us-watermark-eso-pic.sty}
838 % -----------------------------
839
840 \end{document}