Debian Codegraph @

texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.alice.sty

raw
1 %% Copyright 2016 Nils Fleischhacker
2 %%
3 %% This work may be distributed and/or modified under the
4 %% conditions of the LaTeX Project Public License, either
5 %% version 1.3 of this license or (at your option) any later
6 %% version. The latest version of this license is in
7 %%
8 %% http://www.latex-project.org/lppl.txt
9 %%
10 %% and version 1.3 or later is part of all distributions of
11 %% LaTeX version 2005/12/01 or later.
12 %%
13 %% This work has the LPPL maintenance status `maintained'.
14 %%
15 %% The Current Maintainer of this work is Nils Fleischhacker.
16 \tikzpeople@addcolorkey{details}
17
18 \newcommand{\tikzpeople@alice@paint}{
19 \tikzpeople@person@paintshirt
20 \tikzpeople@alice@paintshirtdetails
21 \tikzpeople@person@paintrighthorn
22 \tikzpeople@person@painthead
23 \tikzpeople@alice@painthair
24 \tikzpeople@person@paintgoatee
25 \tikzpeople@person@paintlefthorn
26 \tikzpeople@person@painthalo
27 }
28
29 \newcommand{\tikzpeople@alice@painthair}{
30 \draw[hair]
31 (15:3pt) arc (15:160:3pt) arc (160:190:5pt)
32 to[out=280,in=190,in looseness=.5,out looseness=.7] (230:2.9pt)
33 to[out=120,in=120,looseness=2] (-1.7pt,-1pt)
34 to[out=60,in=170,out looseness=2,in looseness=.75] (-1pt,0.3pt)
35 to [out=350,in=200,out looseness=1.5,in looseness=.75] (15:3pt) -- cycle;
36 }
37
38 \newcommand{\tikzpeople@alice@paintshirtdetails}{
39 \begin{scope}
40 \clip
41 (-4pt,-8pt) .. controls (-2pt,-10pt) and (3pt,-9pt) ..
42 ( 5pt,-7pt) .. controls ( 5pt, 0pt) and (-5pt,0pt) ..
43 (-4pt,-8pt);
44 \draw[shirt,shading angle=-45]
45 (2pt,-8.7pt) -- ++(-3.8pt,3.8pt) -- ++(2.5pt,1.5pt)--cycle;
46 \draw[shirt,shading angle=-45]
47 (2pt,-8.7pt) -- ++(1.2pt,4.7pt) -- ++(-2.4pt,.3pt)--cycle;
48 \end{scope}
49 \fill[color=\tikzpeople@shirt!40!black]
50 (230:3pt) ++(0pt,-2pt)
51 to[out=359,in=101, in looseness=1.5, out looseness=1.1] ++(3.8pt,-4pt) --
52 ++(-.8pt,4pt);
53 \draw[undershirt]
54 (230:3pt) to[out=230,in=100] ++(0pt,-2pt) to[out=0,in=110] ++(3.4pt,-2pt)
55 to[out=70,in=190] ++(1.7pt,2.7pt) to[out=100,in=340] (310:3pt);
56 \draw[skin]
57 (250:3pt) to[out=330,in=110] (1.4pt,-5.7pt)
58 to[out=80,in=269, out looseness=1.5] (305:3pt);
59 }
60
61 \newcommand{\tikzpeople@alice@definecolors}{
62 \definecolor{shirt}{RGB}{253,156,40}
63 \definecolor{undershirt}{RGB}{232,232,232}
64 \definecolor{skin}{RGB}{148,60,19}
65 \definecolor{hair}{rgb}{0,0,0}
66 }
67 \newcommand{\tikzpeople@alice@definestyles}{
68 }
69
70 \newcommand{\tikzpeople@alice@colors}{
71 shirt/340/{1/-.75}, hair/160/{-.65/1}, skin/20/{.25/.6},
72 details/200/{-.45/-.2}%
73 }