| 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@criminal@paint}{ |
| 19 |
{ |
| 20 |
\pgftransformyshift{-1.2pt} |
| 21 |
\tikzpeople@person@paintrighthorn |
| 22 |
} |
| 23 |
\tikzpeople@person@painthead |
| 24 |
\tikzpeople@person@paintgoatee |
| 25 |
\tikzpeople@person@paintshirt |
| 26 |
\tikzpeople@criminal@paintshirtdetails |
| 27 |
\if@tikzpeople@female |
| 28 |
\tikzpeople@person@painthair |
| 29 |
\fi |
| 30 |
\tikzpeople@criminal@painthat |
| 31 |
{ |
| 32 |
\pgftransformyshift{-1.2pt} |
| 33 |
\tikzpeople@person@paintlefthorn |
| 34 |
} |
| 35 |
\tikzpeople@person@painthalo |
| 36 |
} |
| 37 |
|
| 38 |
\newcommand{\tikzpeople@criminal@paintshirtdetails}{ |
| 39 |
\draw[shirt,shading angle=-45] |
| 40 |
(205:3.1pt) arc (205:335:3.1pt) to[out=200,in=340] (205:3.1pt) --cycle; |
| 41 |
\begin{scope} |
| 42 |
\clip |
| 43 |
(-4.0pt,-8.0pt) .. controls (-2pt,-10pt) and ( 3pt,-9pt) .. |
| 44 |
( 5.0pt,-7.0pt) .. controls ( 5pt, 0pt) and (-5pt, 0pt) .. |
| 45 |
(-4.0pt,-8.0pt) (205:3.1pt) arc (205:335:3.1pt) to[out=200,in=340] |
| 46 |
(205:3.1pt) --cycle; |
| 47 |
\draw[color=\tikzpeople@shirt\if@tikzpeople@saturated\else!80\fi,line width=.4*\scalingfactor,cap=round] |
| 48 |
(2pt,-8.7pt) to[out=90,in=290] (290:3.1pt) to[out=45,in=270] (310:2.25pt); |
| 49 |
\draw[color=\tikzpeople@details,line width=.17*\scalingfactor,cap=round] |
| 50 |
(2pt,-8.7pt) to[out=90,in=290] (290:3.1pt) to[out=45,in=270] (310:2.25pt); |
| 51 |
\draw[details] |
| 52 |
(310:2.25pt) ++(-.05pt,0) -- ++(-.1pt,-.5pt) -- ++(.3pt,0) -- |
| 53 |
++(-.1pt,.5pt); |
| 54 |
\end{scope} |
| 55 |
} |
| 56 |
|
| 57 |
\newcommand{\tikzpeople@criminal@painthat}{ |
| 58 |
\begin{scope} |
| 59 |
\pgftransformrotate{20} |
| 60 |
\draw[hat] (180:3.1pt) ++(0,.2pt) arc (180:0:3.1pt and 3.5pt); |
| 61 |
\if@tikzpeople@mirrored |
| 62 |
\draw[hat, decorate, decoration={bumps,amplitude=-.1*\scalingfactor,segment length=.7*\scalingfactor}] |
| 63 |
(0:3.2pt) ++(0,-.2pt) to[out=170,in=10] ++(180:6.4pt) to[out=110,in=250] |
| 64 |
++(0,1.2pt) to[out=10,in=170] ++(0:6.4pt) to[out=290,in=70] |
| 65 |
++(0,-1.22pt) --cycle; |
| 66 |
\else |
| 67 |
\draw[hat, decorate, decoration={bumps,amplitude=.1*\scalingfactor,segment length=.7*\scalingfactor}] |
| 68 |
(0:3.2pt) ++(0,-.2pt) to[out=170,in=10] ++(180:6.4pt) |
| 69 |
to[out=110,in=250] ++(0,1.2pt) to[out=10,in=170] ++(0:6.4pt) |
| 70 |
to[out=290,in=70] ++(0,-1.22pt)--cycle; |
| 71 |
\fi |
| 72 |
\end{scope} |
| 73 |
} |
| 74 |
|
| 75 |
\newcommand{\tikzpeople@criminal@definecolors}{ |
| 76 |
\definecolor{shirt}{RGB}{5,48,167} |
| 77 |
\definecolor{hat}{RGB}{4,4,20} |
| 78 |
\definecolor{details}{RGB}{230,232,234} |
| 79 |
\definecolor{hair}{rgb}{0,0,0} |
| 80 |
} |
| 81 |
\newcommand{\tikzpeople@criminal@definestyles}{ |
| 82 |
\if@tikzpeople@saturated |
| 83 |
\tikzset{ |
| 84 |
details/.style={color=\tikzpeople@details,top color=\tikzpeople@details!70, bottom color=\tikzpeople@details,shading angle=45} |
| 85 |
} |
| 86 |
\else |
| 87 |
\tikzset{ |
| 88 |
shirt/.style ={color=\tikzpeople@shirt!80,top color=\tikzpeople@shirt!50, bottom color=\tikzpeople@shirt!80,shading angle=45}, |
| 89 |
details/.style={color=\tikzpeople@details,top color=\tikzpeople@details!40, bottom color=\tikzpeople@details!80,shading angle=45} |
| 90 |
} |
| 91 |
\fi |
| 92 |
} |
| 93 |
|
| 94 |
\newcommand{\tikzpeople@criminal@colors}{ |
| 95 |
shirt/340/{1/-.75}, hat/160/{-.5/1.5}, skin/20/{.5/.75}, |
| 96 |
details/200/{.27/-.25}% |
| 97 |
} |