| 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{badge} |
| 17 |
\tikzpeople@addcolorkey{badgeclip} |
| 18 |
\tikzpeople@addcolorkey{badgename} |
| 19 |
\tikzpeople@addcolorkey{redcross} |
| 20 |
\tikzpeople@addtextkey{badgetext}{Nurse} |
| 21 |
|
| 22 |
\newcommand{\tikzpeople@nurse@paint}{ |
| 23 |
\tikzpeople@person@paintshirt |
| 24 |
\tikzpeople@nurse@paintshirtdetails |
| 25 |
\tikzpeople@person@paintrighthorn |
| 26 |
\tikzpeople@person@painthead |
| 27 |
\tikzpeople@person@painthairstyletwo |
| 28 |
\tikzpeople@person@paintgoatee |
| 29 |
\tikzpeople@person@paintlefthorn |
| 30 |
\tikzpeople@person@painthalo |
| 31 |
} |
| 32 |
|
| 33 |
\newcommand{\tikzpeople@nurse@paintshirtdetails}{ |
| 34 |
\begin{scope} |
| 35 |
\clip |
| 36 |
(-4pt,-8pt) .. controls (-2pt,-10pt) and (3pt,-9pt) .. |
| 37 |
( 5pt,-7pt) .. controls ( 5pt, 0pt) and (-5pt,0pt) .. |
| 38 |
(-4pt,-8pt); |
| 39 |
\draw[skin] |
| 40 |
(245:3pt) .. controls (1pt,-4.85pt) .. (1.3pt,-4.85pt) .. controls |
| 41 |
(1.7pt,-4.6pt) .. (311:3pt) -- cycle; |
| 42 |
\draw[shirt,shading angle=-45] |
| 43 |
(-.1pt,-7.2pt) to[out=204,in=348] (-2.5pt,-7.2pt) -- ++(270:1.3pt) arc |
| 44 |
(180:360:1.2pt) --cycle; |
| 45 |
\draw[color=\tikzpeople@shirt!90!black,thick] |
| 46 |
(-.1pt,-7.2pt) to[out=204,in=348] (-2.5pt,-7.2pt); |
| 47 |
\draw[badge] |
| 48 |
(-.4pt,-7.6pt) to[out=185,in=355] (-2.1pt,-7.6pt) -- ++(270:.7pt) |
| 49 |
to[out=355,in=185] (-.4pt,-8.3pt) --cycle; |
| 50 |
\draw[badgeclip] |
| 51 |
(-1.1pt,-7.3pt) rectangle ++(-.2pt,-.4pt); |
| 52 |
\draw[draw=\tikzpeople@redcross,fill=\tikzpeople@redcross] |
| 53 |
(-1.8pt,-7.8pt) -- ++(0pt,-.1pt) -- ++(-.1pt,0pt) -- ++(0pt,-.1pt) -- |
| 54 |
++(.1pt,0pt) -- ++(0pt,-.1pt) -- ++(.1pt,0pt) -- ++(0pt,.1pt) -- |
| 55 |
++(.1pt,0pt) -- ++(0pt,.1pt) -- ++(-.1pt,0pt) -- ++(0pt,.1pt) --cycle; |
| 56 |
{ |
| 57 |
\pgf@xa=0.6pt*\scalingfactor |
| 58 |
\pgftext[at=\pgfpoint{-1pt}{-7.95pt}]{\resizebox{\pgf@xa}{!}{\color{\tikzpeople@badgename}\if@tikzpeople@mirrored\reflectbox{\tikzpeople@badgetext}\else{\tikzpeople@badgetext}\fi}} |
| 59 |
} |
| 60 |
\end{scope} |
| 61 |
} |
| 62 |
|
| 63 |
\newcommand{\tikzpeople@nurse@definecolors}{ |
| 64 |
\definecolor{shirt}{RGB}{237,113,102} |
| 65 |
\definecolor{badgename}{rgb}{0,0,0} |
| 66 |
\definecolor{badge}{rgb}{1,1,1} |
| 67 |
\definecolor{badgeclip}{rgb}{0.4,0.4,0.4} |
| 68 |
\definecolor{redcross}{rgb}{1,0,0} |
| 69 |
\definecolor{hair}{rgb}{0,0,0} |
| 70 |
} |
| 71 |
\newcommand{\tikzpeople@nurse@definestyles}{ |
| 72 |
\if@tikzpeople@saturated |
| 73 |
\tikzset{ |
| 74 |
badge/.style={fill=\tikzpeople@badge,draw=\tikzpeople@badge!30!black}, |
| 75 |
badgeclip/.style={top color=\tikzpeople@badgeclip!70, bottom color=\tikzpeople@badgeclip,shading angle=45,rounded corners=.08*\scalingfactor} |
| 76 |
} |
| 77 |
\else |
| 78 |
\tikzset{ |
| 79 |
badge/.style={fill=\tikzpeople@badge,draw=\tikzpeople@badge!30!black}, |
| 80 |
badgeclip/.style={top color=\tikzpeople@badgeclip!30, bottom color=\tikzpeople@badgeclip,shading angle=45,rounded corners=.08*\scalingfactor} |
| 81 |
} |
| 82 |
\fi |
| 83 |
} |
| 84 |
|
| 85 |
\newcommand{\tikzpeople@nurse@colors}{ |
| 86 |
shirt/0/{.9/-.35}, hair/150/{-.75/.9}, badgeclip/170/{-.45/-1.2}, |
| 87 |
redcross/190/{-.6/-1.35}, badge/210/{-.5/-1.4}, badgename/340/{-.4/-1.35}, |
| 88 |
skin/20/{.6/.6}% |
| 89 |
} |