| 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{mask} |
| 17 |
|
| 18 |
\newcommand{\tikzpeople@surgeon@paint}{ |
| 19 |
\tikzpeople@person@paintshirt |
| 20 |
\tikzpeople@surgeon@paintshirtdetails |
| 21 |
\tikzpeople@person@paintrighthorn |
| 22 |
\tikzpeople@person@painthead |
| 23 |
\tikzpeople@person@painthair |
| 24 |
\tikzpeople@surgeon@painthat |
| 25 |
\tikzpeople@surgeon@paintmask |
| 26 |
\tikzpeople@person@paintlefthorn |
| 27 |
\tikzpeople@person@painthalo |
| 28 |
} |
| 29 |
|
| 30 |
\newcommand{\tikzpeople@surgeon@paintshirtdetails}{ |
| 31 |
\draw[shirt,thick,color=\tikzpeople@shirt,shading angle=90] |
| 32 |
(230:3pt) .. controls +(-0.4pt,-1.5pt) .. ++(0pt,-3pt) .. controls |
| 33 |
+(1.5pt,0.5pt) .. ++(3pt,0.2pt) .. controls +(0.5pt,0.4pt) .. ++(2pt,0.7pt) |
| 34 |
.. controls +(0pt,0.5pt) .. (312:3pt); |
| 35 |
\draw[skin] (231:3pt) -- (1pt,-4.85pt)--(311:3pt) -- cycle; |
| 36 |
} |
| 37 |
|
| 38 |
\newcommand{\tikzpeople@surgeon@painthat}{ |
| 39 |
\draw[hat] |
| 40 |
(160:3pt) ++(.3pt,1.6pt) -- (160:3pt) arc (-180:0:2.85pt and 1pt) -- |
| 41 |
++(-.3pt,1.6pt) arc (0:180:2.55pt and 1pt) arc (-180:0:2.55pt and 1pt); |
| 42 |
} |
| 43 |
|
| 44 |
\newcommand{\tikzpeople@surgeon@paintmask}{ |
| 45 |
\begin{scope} |
| 46 |
\clip (0,0) circle (\pgflinewidth/\scalingfactor +3); |
| 47 |
\draw[mask,color=\tikzpeople@mask!40,shading angle=-90] |
| 48 |
(-17:3pt) arc (295:235:6.1pt) -- ++(0,-.05pt) arc (235:295:6.1pt) --cycle; |
| 49 |
\draw[mask] |
| 50 |
(-18:3pt) arc (295:235:6pt) -- ++(0,-.05pt) arc (230:245:5pt) -- |
| 51 |
++(0,-.6pt) arc (260:245:6pt) -- ++(0,-.1pt) arc (235:300:6pt) --cycle; |
| 52 |
\end{scope} |
| 53 |
} |
| 54 |
|
| 55 |
\newcommand{\tikzpeople@surgeon@definecolors}{ |
| 56 |
\definecolor{shirt}{RGB}{171,201,177} |
| 57 |
\definecolor{hat}{RGB}{171,201,177} |
| 58 |
\definecolor{mask}{RGB}{171,201,177} |
| 59 |
} |
| 60 |
|
| 61 |
\newcommand{\tikzpeople@surgeon@definestyles}{ |
| 62 |
\if@tikzpeople@saturated |
| 63 |
\tikzset{ |
| 64 |
mask/.style={color=\tikzpeople@mask,top color=\tikzpeople@mask!70, bottom color=\tikzpeople@mask,shading angle=90} |
| 65 |
} |
| 66 |
\else |
| 67 |
\tikzset{ |
| 68 |
mask/.style={color=\tikzpeople@mask!80,top color=\tikzpeople@mask!40, bottom color=\tikzpeople@mask!80,shading angle=90} |
| 69 |
} |
| 70 |
\fi |
| 71 |
} |
| 72 |
|
| 73 |
\newcommand{\tikzpeople@surgeon@colors}{ |
| 74 |
shirt/200/{-1/-1}, hair/180/{-.8/.9}, hat/160/{-.7/1.3}, mask/350/{.5/.5}, |
| 75 |
skin/10/{.6/.9}% |
| 76 |
} |