Debian Codegraph @

texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.graduate.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{stripes}
17
18 \newcommand{\tikzpeople@graduate@paint}{
19 \tikzpeople@person@paintshirt
20 \tikzpeople@graduate@paintundershirt
21 \tikzpeople@graduate@paintstripes
22 \tikzpeople@person@paintrighthorn
23 \tikzpeople@person@painthead
24 \tikzpeople@person@painthair
25 \tikzpeople@graduate@painthat
26 \tikzpeople@person@paintgoatee
27 \tikzpeople@person@paintlefthorn
28 \tikzpeople@person@painthalo
29 }
30
31 \newcommand{\tikzpeople@graduate@paintstripes}{
32 \begin{scope}
33 \clip
34 (-4.0pt,-8.0pt) .. controls (-2pt,-10pt) and ( 3pt,-9pt) ..
35 ( 5.0pt,-7.0pt) .. controls ( 5pt, 0pt) and (-5pt, 0pt) ..
36 (-4.0pt,-8.0pt);
37 \draw[stripes]
38 (1.5pt,-9.5pt) .. controls (0.7pt,-6pt) and (-1pt,-4pt) ..
39 (-2.5pt,-2pt) -- (-3.8pt,-2pt) .. controls (-3.2pt,-4pt) and
40 (-0.7pt,-6pt) .. (0pt,-9.5pt) -- cycle;
41 \draw[stripes]
42 (2.3 pt,-2pt) .. controls (3pt,-5pt) and (3pt,-6.5pt) ..
43 (2.9 pt,-9.5pt) -- (3.9 pt,-9.5pt) .. controls (4pt,-6.5pt) and
44 (4pt,-5pt) .. (3.3pt,-2pt);
45 \end{scope}
46 }
47
48 \newcommand{\tikzpeople@graduate@paintundershirt}{
49 \begin{scope}
50 \clip
51 (-4.0pt,-8.0pt) .. controls (-2pt,-10pt) and ( 3pt,-9pt) ..
52 ( 5.0pt,-7.0pt) .. controls ( 5pt, 0pt) and (-5pt, 0pt) ..
53 (-4.0pt,-8.0pt);
54 \draw[undershirt]
55 (-3 pt,-2 pt) .. controls (-0.1pt,-3 pt) and ( 1.2pt,-6 pt) ..
56 ( 2.2pt,-8 pt) .. controls ( 2.3pt,-6 pt) and ( 2.2pt,-4 pt) ..
57 ( 2 pt,-2 pt) -- cycle;
58 \end{scope}
59 \draw[color=\tikzpeople@shirt\if@tikzpeople@saturated\else!80\fi]
60 (-4.0pt,-8.0pt) .. controls (-2pt,-10pt) and ( 3pt,-9pt) ..
61 ( 5.0pt,-7.0pt) .. controls ( 5pt, 0pt) and (-5pt, 0pt) ..
62 (-4.0pt,-8.0pt);
63 }
64
65 \newcommand{\tikzpeople@graduate@painthat}{
66 \draw[hat]
67 (175:3pt) .. controls ++(0.5pt,0.5pt) and (1pt,0.5pt) ..
68 (1.5pt,0pt) .. controls (1.7pt,0.5pt) and (25:2.8pt) ..
69 (20:3pt) -- +(0pt,2pt) -- (175:3pt |- 0,3pt) -- cycle;
70 \draw[hat]
71 (4.4pt,3.6pt) -- (-1.5pt,4pt) -- (-4.3pt,2.5pt) -- (2pt,2pt);
72 \draw[color=\tikzpeople@hat\if@tikzpeople@saturated\else!80\fi,line width=0.15*\scalingfactor,cap=round]
73 (0pt,3.2pt) -- (-3.4pt,2.5pt) arc (90:180:0.2pt) -- (-3.5pt,-0.5pt);
74 \draw[hat]
75 (-3.6pt,-0.5pt) -- (-3.7pt,-1.5pt) .. controls (-3.5pt,-1.6pt) ..
76 (-3.3pt,-1.5pt) --
77 (-3.4pt,-0.5pt);
78 \draw[hat]
79 (-3.5pt,-0.5pt) circle (0.25pt);
80 }
81
82 \newcommand{\tikzpeople@graduate@definecolors}{
83 \definecolor{shirt}{rgb}{0,0,0}
84 \definecolor{hat}{rgb}{0,0,0}
85 \definecolor{undershirt}{RGB}{232,232,232}
86 \definecolor{stripes}{rgb}{0.16,0.55,0.31}
87 }
88 \newcommand{\tikzpeople@graduate@definestyles}{
89 \if@tikzpeople@saturated
90 \tikzset{
91 stripes/.style={color=\tikzpeople@stripes,top color=\tikzpeople@stripes!70, bottom color=\tikzpeople@stripes,shading angle=45}
92 }
93 \else
94 \tikzset{
95 stripes/.style={color=\tikzpeople@stripes!80,top color=\tikzpeople@stripes!40, bottom color=\tikzpeople@stripes!80,shading angle=45}
96 }
97 \fi
98 }
99
100 \newcommand{\tikzpeople@graduate@colors}{
101 shirt/200/{-1/-.9}, hair/180/{-.75/.9}, hat/160/{-.75/1.3}, skin/20/{.5/.75},
102 undershirt/0/{.4/-.1}, stripes/340/{.8/-.7,0/-1.3}%
103 }