| 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{hatshield} |
| 17 |
\tikzpeople@addcolorkey{hatbadge} |
| 18 |
\tikzpeople@addcolorkey{badge} |
| 19 |
|
| 20 |
\newcommand{\tikzpeople@police@paint}{ |
| 21 |
\tikzpeople@person@paintshirt |
| 22 |
\tikzpeople@police@paintshirtdetails |
| 23 |
\tikzpeople@person@paintrighthorn |
| 24 |
\tikzpeople@person@painthead |
| 25 |
\tikzpeople@person@painthair |
| 26 |
\tikzpeople@police@painthat |
| 27 |
\tikzpeople@person@paintgoatee |
| 28 |
\tikzpeople@person@paintlefthorn |
| 29 |
\tikzpeople@person@painthalo |
| 30 |
} |
| 31 |
|
| 32 |
\newcommand{\tikzpeople@police@paintshirtdetails}{ |
| 33 |
\begin{scope} |
| 34 |
\clip |
| 35 |
(-4.0pt,-8.0pt) .. controls (-2pt,-10pt) and ( 3pt,-9pt) .. |
| 36 |
( 5.0pt,-7.0pt) .. controls ( 5pt, 0pt) and (-5pt, 0pt) .. (-4.0pt,-8.0pt); |
| 37 |
\draw[shirt,color=black!85,shading angle=-45] |
| 38 |
(220:3.5pt) .. controls +(0.05pt,-1.5pt) .. ++(0.5pt,-3pt) .. controls |
| 39 |
+(1.3pt,0.8pt) .. ++(3pt,0.5pt) .. controls +(1pt,0.6pt) .. ++(3pt,0.8pt) |
| 40 |
.. controls +(-0.5pt,0.9pt) .. (315:3.3pt); |
| 41 |
\draw[undershirt] |
| 42 |
(180:3pt) ++(-0.5pt,-1pt) -- (1.5pt,-6pt) -- (300:4pt)-- ++(0pt,1pt); |
| 43 |
\fill[draw,color=black!85] |
| 44 |
(1.6pt,-6.1pt) -- ++(0.1pt,-1.5pt) -- ++(0.05pt,.75pt); |
| 45 |
\draw[color=black!85] (1.6pt,-6.1pt) -- +(1pt,5pt); |
| 46 |
\draw[skin] (222:3pt) -- (267:4pt) arc (267:300:4pt) -- ++(0.5pt,2pt); |
| 47 |
\end{scope} |
| 48 |
\draw[badge,shading angle=-45] |
| 49 |
(70:-7pt) .. controls +(0.75pt,-0.05pt) .. ++(1.5pt,0.1pt) -- |
| 50 |
++(0.2pt,-0.15pt) .. controls +(-.5pt,-.5pt) .. ++(0.1pt,-.8pt) .. controls |
| 51 |
+(0.5pt,-.5pt) and +(0pt,0.35pt) .. ++(-1pt,-1pt) .. controls +(0pt,0.35pt) |
| 52 |
and +(-0.5pt,-0.35pt) .. ++(-.8pt,1pt) .. controls +(0.3pt,0.2pt) .. |
| 53 |
++(0pt,.5pt) -- (70:-7pt); |
| 54 |
} |
| 55 |
|
| 56 |
\newcommand{\tikzpeople@police@painthat}{ |
| 57 |
\path (160:3pt) arc (-180:-120:2.85pt and 1pt) coordinate (tikzpeople@tmp); |
| 58 |
\draw[hatbottom,rounded corners=.75pt] |
| 59 |
(tikzpeople@tmp) -- ++(340:1.5pt) .. controls ++(340:1pt) .. ++(10:3.8pt) .. |
| 60 |
controls ++(45:.2pt) .. (20:3pt); |
| 61 |
\draw[hatbottom] |
| 62 |
(160:3pt) ++(0pt,1pt) -- (160:3pt) arc (-180:0:2.85pt and 1pt) -- |
| 63 |
++(0pt,1pt); |
| 64 |
\draw[hattop,rounded corners=.75pt] |
| 65 |
(160:3pt) ++(0pt,0.5pt) arc (-180:-22:3pt and 1.05pt) -- ++(1pt,1.5pt) -- |
| 66 |
++(0pt,.4pt) .. controls +(-4pt,.5pt) .. (142:4.8pt) -- ++(0pt,-0.5pt) -- |
| 67 |
cycle; |
| 68 |
\begin{scope} |
| 69 |
\clip[rounded corners=.75pt] |
| 70 |
(160:3pt) ++(0pt,0.5pt) arc (-180:-22:3pt and 1.05pt) -- ++(1pt,1.5pt) -- |
| 71 |
++(0pt,.4pt) .. controls +(-4pt,.5pt) .. (142:4.8pt) -- ++(0pt,-0.5pt) -- |
| 72 |
cycle; |
| 73 |
\draw[hatbottom,nearly opaque] |
| 74 |
(153:3.5pt) ++(0pt,-2pt) -- (153:3.5pt) .. controls ++(350:1.5pt) .. |
| 75 |
++(10:2.5pt) .. controls ++(335:1.2pt) .. ++(2:2.5pt) coordinate |
| 76 |
(hatbadge) .. controls ++(335:1.2pt) .. ++(10:2.5pt) -- ++(0pt,-2pt); |
| 77 |
\end{scope} |
| 78 |
\draw[hatbadge] |
| 79 |
(hatbadge) ++(0.2pt,-0.2pt) coordinate (tikzpeople@tmp) .. controls ++(190:.5pt) .. |
| 80 |
++(200:.75pt) .. controls ++(270:.75pt) .. ++(300:1pt) .. controls |
| 81 |
++(70:.5pt) .. ++(55:1.1pt) .. controls ++(135:.3pt) .. (tikzpeople@tmp); |
| 82 |
} |
| 83 |
|
| 84 |
\newcommand{\tikzpeople@police@definecolors}{ |
| 85 |
\definecolor{shirt}{rgb}{0.18,0.38,0.80} |
| 86 |
\definecolor{hat}{rgb}{0.18,0.38,0.80} |
| 87 |
\definecolor{badge}{rgb}{0.96,0.55,0.1} |
| 88 |
\definecolor{hatbadge}{rgb}{0.82,0.82,0.82} |
| 89 |
\definecolor{hatshield}{rgb}{0.031,0.09,0.19} |
| 90 |
\definecolor{undershirt}{RGB}{232,232,232} |
| 91 |
} |
| 92 |
|
| 93 |
\newcommand{\tikzpeople@police@definestyles}{ |
| 94 |
\if@tikzpeople@saturated |
| 95 |
\tikzset{ |
| 96 |
shirt/.style ={color=\tikzpeople@shirt!90,top color=\tikzpeople@shirt!90, bottom color=\tikzpeople@shirt,shading angle=45}, |
| 97 |
hattop/.style ={color=\tikzpeople@hat!90,top color=\tikzpeople@hat!90, bottom color=\tikzpeople@hat,shading angle=45}, |
| 98 |
hatbottom/.style={color=\tikzpeople@hatshield,top color=\tikzpeople@hatshield!80, bottom color=\tikzpeople@hatshield,shading angle=45}, |
| 99 |
badge/.style ={color=\tikzpeople@badge,top color=\tikzpeople@badge!70, bottom color=\tikzpeople@badge,shading angle=45}, |
| 100 |
hatbadge/.style ={color=\tikzpeople@hatbadge,top color=\tikzpeople@hatbadge!70, bottom color=\tikzpeople@hatbadge,shading angle=45} |
| 101 |
} |
| 102 |
\else |
| 103 |
\tikzset{ |
| 104 |
shirt/.style ={color=\tikzpeople@shirt!80,top color=\tikzpeople@shirt!80, bottom color=\tikzpeople@shirt,shading angle=45}, |
| 105 |
hattop/.style ={color=\tikzpeople@hat!80,top color=\tikzpeople@hat!80, bottom color=\tikzpeople@hat,shading angle=45}, |
| 106 |
hatbottom/.style={color=\tikzpeople@hatshield!80,top color=\tikzpeople@hatshield!60, bottom color=\tikzpeople@hatshield!90,shading angle=45}, |
| 107 |
badge/.style ={color=\tikzpeople@badge!80,top color=\tikzpeople@badge!40, bottom color=\tikzpeople@badge!80,shading angle=45}, |
| 108 |
hatbadge/.style ={color=\tikzpeople@hatbadge!80,top color=\tikzpeople@hatbadge!40, bottom color=\tikzpeople@hatbadge!80,shading angle=45} |
| 109 |
} |
| 110 |
\fi |
| 111 |
} |
| 112 |
|
| 113 |
\newcommand{\tikzpeople@police@colors}{ |
| 114 |
shirt/190/{-1/-.6}, hat/150/{-.9/1.6}, hair/170/{-.75/.9}, skin/350/{.4/.4}, |
| 115 |
badge/210/{-.7/-1.2}, hatbadge/30/{.4/1.3}, hatshield/10/{.7/1}, |
| 116 |
undershirt/330/{.3/-.5}% |
| 117 |
} |