%% Copyright 2016 Nils Fleischhacker
%%
%% This work may be distributed and/or modified under the 
%% conditions of the LaTeX Project Public License, either 
%% version 1.3 of this license or (at your option) any later 
%% version. The latest version of this license is in
%%
%%   http://www.latex-project.org/lppl.txt
%%
%% and version 1.3 or later is part of all distributions of 
%% LaTeX version 2005/12/01 or later.
%%
%% This work has the LPPL maintenance status `maintained'.
%% 
%% The Current Maintainer of this work is Nils Fleischhacker.
%%
%% This work consists of the files tikzpeople.tex, tikzpeople.sty,
%% tikzpeople.shape.alice.sty, tikzpeople.shape.bob.sty, 
%% tikzpeople.shape.bride.sty, tikzpeople.shape.builder.sty,
%% tikzpeople.shape.businessman.sty, tikzpeople.shape.charlie.sty,
%% tikzpeople.shape.chef.sty, tikzpeople.shape.conductor.sty,
%% tikzpeople.shape.cowboy.sty, tikzpeople.shape.criminal.sty,
%% tikzpeople.shape.dave.sty, tikzpeople.shape.graduate.sty, 
%% tikzpeople.shape.groom.sty, tikzpeople.shape.guard.sty, 
%% tikzpeople.shape.jester.sty, tikzpeople.shape.judge.sty,
%% tikzpeople.shape.mexican.sty, tikzpeople.shape.nun.sty, 
%% tikzpeople.shape.nurse.sty, tikzpeople.shape.physician.sty,
%% tikzpeople.shape.pilot.sty, tikzpeople.shape.police.sty,
%% tikzpeople.shape.priest.sty, tikzpeople.shape.sailor.sty,
%% tikzpeople.shape.santa.sty and tikzpeople.shape.surgeon.sty
\tikzpeople@addcolorkey{badge}
\tikzpeople@addcolorkey{badgeclip}
\tikzpeople@addcolorkey{badgename}
\tikzpeople@addcolorkey{redcross}

\newcommand{\tikzpeople@nurse@paint}{
	\tikzpeople@person@paintshirt
	\tikzpeople@nurse@paintshirtdetails
	\tikzpeople@person@paintrighthorn
	\tikzpeople@person@painthead
	\tikzpeople@person@painthairstyletwo
	\tikzpeople@person@paintgoatee
	\tikzpeople@person@paintlefthorn
	\tikzpeople@person@painthalo
}

\newcommand{\tikzpeople@nurse@paintshirtdetails}{
	\begin{scope}
		\clip 
			(-4pt,-8pt) .. controls (-2pt,-10pt) and (3pt,-9pt) .. 
			( 5pt,-7pt) .. controls ( 5pt,  0pt) and (-5pt,0pt) ..
			(-4pt,-8pt);
		\draw[skin]
			(245:3pt) .. controls (1pt,-4.85pt) .. (1.3pt,-4.85pt) .. controls 
			(1.7pt,-4.6pt) .. (311:3pt) -- cycle;
		\draw[shirt,shading angle=-45] 
			(-.1pt,-7.2pt) to[out=204,in=348] (-2.5pt,-7.2pt) -- ++(270:1.3pt) arc 
			(180:360:1.2pt) --cycle;
		\draw[color=\tikzpeople@shirt!90!black,thick] 
			(-.1pt,-7.2pt) to[out=204,in=348] (-2.5pt,-7.2pt);
		\draw[fill=\tikzpeople@badge,draw=\tikzpeople@badge!30!black] 
			(-.4pt,-7.6pt) to[out=185,in=355] (-2.1pt,-7.6pt) -- ++(270:.7pt) 
			to[out=355,in=185] (-.4pt,-8.3pt) --cycle;
		\draw[top color=\tikzpeople@badgeclip!30, bottom color=\tikzpeople@badgeclip,shading angle=45,rounded corners=.08*\scalingfactor] 
			(-1.1pt,-7.3pt) rectangle ++(-.2pt,-.4pt);
		\draw[draw=\tikzpeople@redcross,fill=\tikzpeople@redcross] 
			(-1.8pt,-7.8pt) -- ++(0pt,-.1pt) -- ++(-.1pt,0pt) -- ++(0pt,-.1pt) -- 
			++(.1pt,0pt) -- ++(0pt,-.1pt) -- ++(.1pt,0pt) -- ++(0pt,.1pt) -- 
			++(.1pt,0pt) -- ++(0pt,.1pt) -- ++(-.1pt,0pt) -- ++(0pt,.1pt) --cycle;
		{
			\pgf@xa=0.6pt*\scalingfactor
			\pgftext[at=\pgfpoint{-1pt}{-7.95pt}]{\resizebox{\pgf@xa}{!}{\color{\tikzpeople@badgename}\if@tikzpeople@mirrored\reflectbox{Nurse}\else{Nurse}\fi}}
		}
	\end{scope}
}

\newcommand{\tikzpeople@nurse@definecolors}{
	\definecolor{shirt}{RGB}{237,113,102}
	\definecolor{skin}{rgb}{0.84,0.58,0.24}
	\definecolor{badgename}{rgb}{0,0,0}
	\definecolor{badge}{rgb}{1,1,1}
	\definecolor{badgeclip}{rgb}{0.4,0.4,0.4}
	\definecolor{redcross}{rgb}{1,0,0}
	\definecolor{hair}{rgb}{0,0,0}
}
\newcommand{\tikzpeople@nurse@definestyles}{
	\tikzstyle{shirt}=[color=\tikzpeople@shirt!80,top color=\tikzpeople@shirt!30, bottom color=\tikzpeople@shirt!90,shading angle=45];
	\tikzstyle{skin}=[color=\tikzpeople@skin!80,top color=\tikzpeople@skin!40, bottom color=\tikzpeople@skin!80,shading angle=45];
	\tikzstyle{hair}=[color=\tikzpeople@hair!80,top color=\tikzpeople@hair!40, bottom color=\tikzpeople@hair!80,shading angle=45];
	\tikzstyle{goatee}=[color=\tikzpeople@hair!80,top color=\tikzpeople@hair!40, bottom color=\tikzpeople@hair!80,shading angle=45];
	\tikzstyle{horns}=[color=red!80,top color=red!40, bottom color=red!80,shading angle=45];
	\tikzstyle{halo}=[color=yellow!80,top color=yellow!40, bottom color=yellow!80,shading angle=45];
}

\newcommand{\tikzpeople@nurse@colors}{
	shirt/0/{.9/-.35}, hair/150/{-.75/.9}, badgeclip/170/{-.425/-1.15}, 
	redcross/190/{-.55/-1.3}, badge/210/{-.4/-1.35}, badgename/340/{-.3/-1.3}, 
	skin/20/{.6/.6}%
}
