Debian Codegraph @

texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.nun.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{plaid}
17
18 \newcommand{\tikzpeople@nun@paint}{
19 \tikzpeople@nun@paintshirt
20 \tikzpeople@person@paintrighthorn
21 \tikzpeople@person@painthead
22 \tikzpeople@nun@painthat
23 \tikzpeople@person@paintgoatee
24 \tikzpeople@person@paintlefthorn
25 \tikzpeople@person@painthalo
26 }
27
28 \newcommand{\tikzpeople@nun@definecolors}{
29 \definecolor{shirt}{rgb}{0,0,0}
30 \definecolor{hat}{rgb}{0,0,0}
31 \definecolor{plaid}{RGB}{232,232,232}
32 \definecolor{hair}{rgb}{0,0,0}
33 }
34
35 \newcommand{\tikzpeople@nun@definestyles}{
36 \if@tikzpeople@saturated
37 \tikzset{
38 plaid/.style={top color=\tikzpeople@plaid!70, bottom color=\tikzpeople@plaid,shading angle=45}
39 }
40 \else
41 \tikzset{
42 plaid/.style={top color=\tikzpeople@plaid!30, bottom color=\tikzpeople@plaid!90,shading angle=45}
43 }
44 \fi
45 }
46
47 \newcommand{\tikzpeople@nun@painthat}{
48 \begin{scope}
49 \clip(0,0) circle (3.05pt);
50 \path[plaid,draw=none]
51 ( -1.3pt, -0.1pt) .. controls (0pt,-0.1pt) and (2pt,0.2pt) ..
52 (10:3.2pt) arc (10:180:3.2pt) -- cycle;
53 \end{scope}
54 \draw[hat]
55 (15:3.05pt) arc (15:170:3.05pt) --
56 (-3.05pt, 0.2pt) .. controls (-3.3pt,-1.0pt) and (-3.3pt,-2.3pt) ..
57 (-3.2pt,-3.6pt) .. controls (-2.7pt,-4.0pt) and (-1.7pt,-4.3pt) ..
58 (-1.2pt,-4.5pt) .. controls (-1.6pt,-2.0pt) and (-1.6pt, 0.0pt) ..
59 (-1.3pt, 0.2pt) .. controls ( 0.0pt, 0.1pt) and ( 2.0pt, 0.5pt) ..
60 (15:3.05pt);
61 }
62
63 \newcommand{\tikzpeople@nun@paintshirt}{
64 \begin{scope}
65 \clip
66 (-4pt,-8pt) .. controls (-2pt,-10pt) and ( 3pt,-9pt) ..
67 ( 5pt,-7pt) .. controls ( 5pt, 0pt) and (-5pt, 0pt) ..
68 (-4pt,-8pt);
69 \path[shirt]
70 (-4pt,-8pt) .. controls (-2pt,-10pt) and ( 3pt,-9pt) ..
71 ( 5pt,-7pt) .. controls ( 5pt, 0pt) and (-5pt, 0pt) ..
72 (-4pt,-8pt);
73 \path[plaid]
74 (-3.9 pt, 0.0pt) -- (-3.9pt,-5.5pt) .. controls (-2pt,-7.5pt) and
75 (3pt,-6.5pt) .. ( 4.55pt,-4.7pt) .. controls (4.45pt,-4.3pt) ..
76 ( 4.2 pt,-4.0pt) -- (4.2pt,0pt);
77 \end{scope}
78 \draw[color=\tikzpeople@shirt\if@tikzpeople@saturated\else!80\fi]
79 (-4pt,-8pt) .. controls (-2pt,-10pt) and ( 3pt,-9pt) .. ( 5pt,-7pt) ..
80 controls ( 5pt, 0pt) and (-5pt, 0pt) .. (-4pt,-8pt);
81 }
82
83 \newcommand{\tikzpeople@nun@colors}{
84 shirt/190/{-1/-1.2}, hat/170/{-.65/.7}, skin/20/{.6/.9}, plaid/340/{.9/-.4,.1/.9}%
85 }