| 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{stripes} |
| 18 |
|
| 19 |
\newcommand{\tikzpeople@sailor@paint}{ |
| 20 |
\tikzpeople@person@paintshirt |
| 21 |
\tikzpeople@sailor@paintundershirt |
| 22 |
\tikzpeople@sailor@paintshirtdetails |
| 23 |
\tikzpeople@person@paintrighthorn |
| 24 |
\tikzpeople@person@painthead |
| 25 |
\tikzpeople@person@painthair |
| 26 |
\tikzpeople@sailor@painthat |
| 27 |
\tikzpeople@person@paintgoatee |
| 28 |
\tikzpeople@person@paintlefthorn |
| 29 |
\tikzpeople@person@painthalo |
| 30 |
} |
| 31 |
|
| 32 |
\newcommand{\tikzpeople@sailor@paintundershirt}{ |
| 33 |
\begin{scope} |
| 34 |
\clip (233:3pt) -- (1.5pt,-6.5pt) -- (312:3pt) -- cycle; |
| 35 |
\draw[undershirt] (233:3.1pt) -- (1.5pt,-6.5pt) -- (312:3.1pt) -- cycle; |
| 36 |
\draw[stripes] (-0.5pt,-4pt) arc (270:300:6pt) |
| 37 |
(-0.5pt,-4.7pt) arc (270:300:6pt) (-0.5pt,-5.4pt) arc (270:300:6pt) |
| 38 |
(-0.5pt,-6.1pt) arc (270:300:6pt); |
| 39 |
\draw[skin] (200:3.5pt) arc (200:330:3.5pt); |
| 40 |
\end{scope} |
| 41 |
} |
| 42 |
|
| 43 |
\newcommand{\tikzpeople@sailor@paintshirtdetails}{ |
| 44 |
\begin{scope} |
| 45 |
\clip |
| 46 |
(-4.0pt,-8.0pt) .. controls (-2pt,-10pt) and ( 3pt,-9pt) .. |
| 47 |
( 5.0pt,-7.0pt) .. controls ( 5pt, 0pt) and (-5pt, 0pt) .. |
| 48 |
(-4.0pt,-8.0pt); |
| 49 |
\draw[details] |
| 50 |
(233:3pt) -- (1.5pt,-6.5pt) -- (312:3pt) -- ++(0pt,2pt) -- (3.5pt,-3pt) .. |
| 51 |
controls (3.2pt,-4pt) and (2.2pt,-6pt) .. (1.5pt,-6.5pt) .. controls |
| 52 |
(-0.5pt,-5.5pt) and (-2pt,-3.9pt) .. (-3.8pt,-5.1pt) -- ++(0pt,2pt) -- |
| 53 |
cycle; |
| 54 |
\begin{scope} |
| 55 |
\clip |
| 56 |
(233:3pt) -- (1.5pt,-6.5pt) .. controls (-0.5pt,-5.5pt) and |
| 57 |
(-2pt,-3.9pt) .. (-3.8pt,-5.1pt) -- ++(0pt,2pt); |
| 58 |
\draw[white] |
| 59 |
(1.5pt,-6.25pt) .. controls (-0.5pt,-5.25pt) and (-2pt,-3.65pt) .. |
| 60 |
(-3.8pt,-4.85pt); |
| 61 |
\draw[white] |
| 62 |
(1.5pt,-6pt) .. controls (-0.5pt,-5pt) and (-2pt,-3.4pt) .. |
| 63 |
(-3.8pt,-4.6pt); |
| 64 |
\end{scope} |
| 65 |
\begin{scope} |
| 66 |
\clip |
| 67 |
(1.5pt,-6.5pt) -- (312:3pt) -- ++(0pt,2pt) -- (3.5pt,-3pt) .. controls |
| 68 |
(3.2pt,-4pt) and (2.2pt,-6pt) .. (1.5pt,-6.5pt); |
| 69 |
\draw[white] |
| 70 |
(3.25pt,-2.75pt) .. controls (2.95pt,-4pt) and (1.95pt,-6pt) .. |
| 71 |
(1.25pt,-6.5pt); |
| 72 |
\draw[white] |
| 73 |
(3pt,-2.7pt) .. controls (2.7pt,-4pt) and (1.7pt,-6pt) .. (1pt,-6.5pt); |
| 74 |
\end{scope} |
| 75 |
\end{scope} |
| 76 |
} |
| 77 |
|
| 78 |
\newcommand{\tikzpeople@sailor@painthat}{ |
| 79 |
{ |
| 80 |
\pgftransformxshift{-0.2pt} |
| 81 |
\draw[hat] |
| 82 |
(-2.7pt,2.9pt) -- (-2.3pt,1.5pt) to [out=340,in=200] ( 2.5pt,1.5pt) -- |
| 83 |
(2.9pt,2.9pt); |
| 84 |
\draw[hat] (0.1pt,2.9pt) ellipse (2.8pt and 0.8pt); |
| 85 |
\begin{scope} |
| 86 |
\clip (0.1pt,2.9pt) ellipse (2.8pt and 0.8pt); |
| 87 |
\draw[hat,shading angle=-45] (0.1pt,2.4pt) ellipse (2pt and 0.7pt); |
| 88 |
\end{scope} |
| 89 |
\draw[details] (0.1pt,3.2pt) ellipse (0.8pt and 0.55pt); |
| 90 |
} |
| 91 |
} |
| 92 |
|
| 93 |
\newcommand{\tikzpeople@sailor@definecolors}{ |
| 94 |
\definecolor{shirt}{RGB}{232,232,232} |
| 95 |
\definecolor{hat}{RGB}{232,232,232} |
| 96 |
\definecolor{undershirt}{rgb}{0.9,0.9,0.95} |
| 97 |
\definecolor{stripes}{rgb}{0.3,0.3,0.3} |
| 98 |
\definecolor{details}{rgb}{0.02,0.18,0.54} |
| 99 |
} |
| 100 |
|
| 101 |
\newcommand{\tikzpeople@sailor@definestyles}{ |
| 102 |
\if@tikzpeople@saturated |
| 103 |
\tikzset{ |
| 104 |
details/.style={color=\tikzpeople@details,top color=\tikzpeople@details!70, bottom color=\tikzpeople@details,shading angle=45}, |
| 105 |
stripes/.style={color=\tikzpeople@stripes,line width=0.15*\scalingfactor,cap=rect} |
| 106 |
} |
| 107 |
\else |
| 108 |
\tikzset{ |
| 109 |
details/.style={color=\tikzpeople@details!80,top color=\tikzpeople@details!40, bottom color=\tikzpeople@details!80,shading angle=45}, |
| 110 |
stripes/.style={color=\tikzpeople@stripes!80,line width=0.15*\scalingfactor,cap=rect} |
| 111 |
} |
| 112 |
\fi |
| 113 |
} |
| 114 |
|
| 115 |
\newcommand{\tikzpeople@sailor@colors}{ |
| 116 |
shirt/340/{1.2/-.9}, hair/170/{-.75/.9}, hat/150/{-.6/1.4}, skin/190/{-.6/.4}, |
| 117 |
undershirt/210/{.2/-.5}, stripes/0/{.2/-.58}, details/20/{0/1.8,.6/0}% |
| 118 |
} |