| 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 |
\tikzpeople@addcolorkey{visor} |
| 18 |
\tikzpeople@addcolorkey{straps} |
| 19 |
|
| 20 |
\newcommand{\tikzpeople@pilot@paint}{ |
| 21 |
\tikzpeople@person@paintshirt |
| 22 |
\tikzpeople@pilot@paintshirtdetails |
| 23 |
\tikzpeople@person@paintrighthorn |
| 24 |
\tikzpeople@person@painthead |
| 25 |
\tikzpeople@pilot@painthat |
| 26 |
\tikzpeople@person@paintlefthorn |
| 27 |
\tikzpeople@pilot@paintvisor |
| 28 |
\tikzpeople@person@paintgoatee |
| 29 |
\tikzpeople@person@painthalo |
| 30 |
} |
| 31 |
|
| 32 |
\newcommand{\tikzpeople@pilot@paintshirtdetails}{ |
| 33 |
\begin{scope} |
| 34 |
\clip |
| 35 |
(-4.0pt,-8.0pt) .. controls (-2pt,-10pt) and (3pt,-9pt) .. (5.0pt,-7.0pt) |
| 36 |
.. controls ( 5pt, 0pt) and (-5pt, 0pt) .. (-4.0pt,-8.0pt); |
| 37 |
\draw[details,thick] |
| 38 |
(220:3pt)++(4pt,-3.5pt) .. controls +(290:1pt) and +(90:1pt) .. |
| 39 |
++(280:4pt); |
| 40 |
\draw[straps,shading angle=-45] |
| 41 |
(278:7pt) -- ++(16:3pt) -- ++(0,-0.8pt) -- ++(197:3pt) -- cycle; |
| 42 |
\draw[straps] |
| 43 |
(230:3pt) .. controls +(2pt,-3pt) and +(0,2.5pt) .. ++(2.25pt,-7pt) -- |
| 44 |
++(1pt,0) .. controls +(0,2.5pt) and +(2pt,-3pt) .. +(-2.25pt,7pt) --cycle; |
| 45 |
\draw[straps] |
| 46 |
(300:2pt) .. controls +(2pt,-3pt) and +(0,2.5pt) .. ++(2.25pt,-7pt) -- |
| 47 |
++(1pt,0) .. controls +(0,2.5pt) and +(2pt,-3pt) .. +(-2.25pt,7pt) --cycle; |
| 48 |
\end{scope} |
| 49 |
\draw[shirt,shading angle=-45] |
| 50 |
(220:3pt) .. controls +(-0.4pt,-1.5pt) .. ++(0.5pt,-3pt) .. controls |
| 51 |
+(1pt,0.5pt) .. ++(3.5pt,-0.5pt) .. controls +(1pt,1.5pt) .. ++(2.3pt,2.2pt) |
| 52 |
.. controls +(135:1.5pt) .. (320:3pt); |
| 53 |
\draw[details,thick] |
| 54 |
(220:3pt)++(0.5pt,-3pt) .. controls +(1pt,0.5pt) .. ++(3.5pt,-0.5pt) .. |
| 55 |
controls +(1pt,1.5pt) .. ++(2.3pt,2.2pt); |
| 56 |
\draw[undershirt] |
| 57 |
(225:3pt) -- ++(3.7pt,-2.9pt) --(311:3pt) -- cycle; |
| 58 |
} |
| 59 |
|
| 60 |
\newcommand{\tikzpeople@pilot@paintvisor}{ |
| 61 |
\draw[visor,rounded corners=.4pt*\scalingfactor] |
| 62 |
(155:2.5pt) to [out=40,in=170] (45:3.2pt) to [out=310,in=90] (2:3.2pt) -- |
| 63 |
(348:2pt) -- (40:1.3pt) -- (300:.5pt) -- (200:1.5pt) -- cycle; |
| 64 |
} |
| 65 |
|
| 66 |
\newcommand{\tikzpeople@pilot@painthat}{ |
| 67 |
\draw[hat] |
| 68 |
(5:3pt) arc (5:255:3pt) to [out=120,in=250] ++(-0.1pt,2.7pt) |
| 69 |
to[out=350,in=210] (5:3pt); |
| 70 |
} |
| 71 |
|
| 72 |
\newcommand{\tikzpeople@pilot@definecolors}{ |
| 73 |
\definecolor{shirt}{rgb}{.51,0.18,0.02} |
| 74 |
\definecolor{hat}{RGB}{232,232,232} |
| 75 |
\definecolor{visor}{RGB}{122,150,165} |
| 76 |
\definecolor{undershirt}{RGB}{99,97,96} |
| 77 |
\definecolor{straps}{rgb}{0,0,0} |
| 78 |
\definecolor{details}{rgb}{0.3,0.3,0.3} |
| 79 |
} |
| 80 |
|
| 81 |
\newcommand{\tikzpeople@pilot@definestyles}{ |
| 82 |
\if@tikzpeople@saturated |
| 83 |
\pgfdeclareradialshading{visor}{\pgfqpoint{-15pt}{10pt}}{% |
| 84 |
color(0pt)=(\tikzpeople@visor!30); |
| 85 |
color(40pt)=(\tikzpeople@visor)} |
| 86 |
\tikzset{ |
| 87 |
visor/.style ={shading=visor,color=\tikzpeople@visor}, |
| 88 |
details/.style={color=\tikzpeople@details}, |
| 89 |
straps/.style ={color=\tikzpeople@straps,top color=\tikzpeople@straps!20, bottom color=\tikzpeople@straps!50,shading angle=45} |
| 90 |
} |
| 91 |
\else |
| 92 |
\pgfdeclareradialshading{visor}{\pgfqpoint{-15pt}{10pt}}{% |
| 93 |
color(0pt)=(\tikzpeople@visor!20); |
| 94 |
color(40pt)=(\tikzpeople@visor!80)} |
| 95 |
\tikzset{ |
| 96 |
visor/.style ={shading=visor,color=\tikzpeople@visor!80}, |
| 97 |
details/.style={color=\tikzpeople@details!80}, |
| 98 |
straps/.style ={color=\tikzpeople@straps!60,top color=\tikzpeople@straps!5, bottom color=\tikzpeople@straps!20,shading angle=45} |
| 99 |
} |
| 100 |
\fi |
| 101 |
} |
| 102 |
|
| 103 |
\newcommand{\tikzpeople@pilot@colors}{ |
| 104 |
shirt/200/{-1/-.95}, visor/30/{.7/1.1}, hat/160/{-.75/.9}, skin/10/{.5/.6}, |
| 105 |
undershirt/180/{.15/-.1}, straps/350/{.8/-.5}, decoration/330/{.35/-.7}% |
| 106 |
} |