summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.police.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.police.sty')
-rw-r--r--Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.police.sty56
1 files changed, 21 insertions, 35 deletions
diff --git a/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.police.sty b/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.police.sty
index 0b1e50ab20c..40534b1dfec 100644
--- a/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.police.sty
+++ b/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.police.sty
@@ -13,23 +13,6 @@
%% 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{undershirt}
-\tikzpeople@addcolorkey{hat}
\tikzpeople@addcolorkey{hatshield}
\tikzpeople@addcolorkey{hatbadge}
\tikzpeople@addcolorkey{badge}
@@ -71,9 +54,9 @@
}
\newcommand{\tikzpeople@police@painthat}{
- \path (160:3pt) arc (-180:-120:2.85pt and 1pt) coordinate (blablub);
+ \path (160:3pt) arc (-180:-120:2.85pt and 1pt) coordinate (tikzpeople@tmp);
\draw[hatbottom,rounded corners=.75pt]
- (blablub) -- ++(340:1.5pt) .. controls ++(340:1pt) .. ++(10:3.8pt) ..
+ (tikzpeople@tmp) -- ++(340:1.5pt) .. controls ++(340:1pt) .. ++(10:3.8pt) ..
controls ++(45:.2pt) .. (20:3pt);
\draw[hatbottom]
(160:3pt) ++(0pt,1pt) -- (160:3pt) arc (-180:0:2.85pt and 1pt) --
@@ -93,16 +76,14 @@
(hatbadge) .. controls ++(335:1.2pt) .. ++(10:2.5pt) -- ++(0pt,-2pt);
\end{scope}
\draw[hatbadge]
- (hatbadge) ++(0.2pt,-0.2pt) coordinate (begin) .. controls ++(190:.5pt) ..
+ (hatbadge) ++(0.2pt,-0.2pt) coordinate (tikzpeople@tmp) .. controls ++(190:.5pt) ..
++(200:.75pt) .. controls ++(270:.75pt) .. ++(300:1pt) .. controls
- ++(70:.5pt) .. ++(55:1.1pt) .. controls ++(135:.3pt) .. (begin);
+ ++(70:.5pt) .. ++(55:1.1pt) .. controls ++(135:.3pt) .. (tikzpeople@tmp);
}
\newcommand{\tikzpeople@police@definecolors}{
\definecolor{shirt}{rgb}{0.18,0.38,0.80}
\definecolor{hat}{rgb}{0.18,0.38,0.80}
- \definecolor{skin}{rgb}{0.84,0.58,0.24}
- \definecolor{hair}{rgb}{0.45,0.24,0}
\definecolor{badge}{rgb}{0.96,0.55,0.1}
\definecolor{hatbadge}{rgb}{0.82,0.82,0.82}
\definecolor{hatshield}{rgb}{0.031,0.09,0.19}
@@ -110,18 +91,23 @@
}
\newcommand{\tikzpeople@police@definestyles}{
- \tikzstyle{shirt}=[color=\tikzpeople@shirt!80,top color=\tikzpeople@shirt!80, bottom color=\tikzpeople@shirt,shading angle=45];
- \tikzstyle{hattop}=[color=\tikzpeople@hat!80,top color=\tikzpeople@hat!80, bottom color=\tikzpeople@hat,shading angle=45];
- \tikzstyle{hatbottom}=[color=\tikzpeople@hatshield!80,top color=\tikzpeople@hatshield!60, bottom color=\tikzpeople@hatshield!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{badge}=[color=\tikzpeople@badge!80,top color=\tikzpeople@badge!40, bottom color=\tikzpeople@badge!80,shading angle=45];
- \tikzstyle{hatbadge}=[color=\tikzpeople@hatbadge!80,top color=\tikzpeople@hatbadge!40!black!5, bottom color=\tikzpeople@hatbadge!80,shading angle=45];
- \tikzstyle{hatshield}=[color=\tikzpeople@hatshield!80,top color=\tikzpeople@hatshield!40, bottom color=\tikzpeople@hatshield!80,shading angle=45];
- \tikzstyle{undershirt}=[color=\tikzpeople@undershirt!80,top color=\tikzpeople@undershirt!30, bottom color=\tikzpeople@undershirt!90,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];
+ \if@tikzpeople@saturated
+ \tikzset{
+ shirt/.style ={color=\tikzpeople@shirt!90,top color=\tikzpeople@shirt!90, bottom color=\tikzpeople@shirt,shading angle=45},
+ hattop/.style ={color=\tikzpeople@hat!90,top color=\tikzpeople@hat!90, bottom color=\tikzpeople@hat,shading angle=45},
+ hatbottom/.style={color=\tikzpeople@hatshield,top color=\tikzpeople@hatshield!80, bottom color=\tikzpeople@hatshield,shading angle=45},
+ badge/.style ={color=\tikzpeople@badge,top color=\tikzpeople@badge!70, bottom color=\tikzpeople@badge,shading angle=45},
+ hatbadge/.style ={color=\tikzpeople@hatbadge,top color=\tikzpeople@hatbadge!70, bottom color=\tikzpeople@hatbadge,shading angle=45}
+ }
+ \else
+ \tikzset{
+ shirt/.style ={color=\tikzpeople@shirt!80,top color=\tikzpeople@shirt!80, bottom color=\tikzpeople@shirt,shading angle=45},
+ hattop/.style ={color=\tikzpeople@hat!80,top color=\tikzpeople@hat!80, bottom color=\tikzpeople@hat,shading angle=45},
+ hatbottom/.style={color=\tikzpeople@hatshield!80,top color=\tikzpeople@hatshield!60, bottom color=\tikzpeople@hatshield!90,shading angle=45},
+ badge/.style ={color=\tikzpeople@badge!80,top color=\tikzpeople@badge!40, bottom color=\tikzpeople@badge!80,shading angle=45},
+ hatbadge/.style ={color=\tikzpeople@hatbadge!80,top color=\tikzpeople@hatbadge!40, bottom color=\tikzpeople@hatbadge!80,shading angle=45}
+ }
+ \fi
}
\newcommand{\tikzpeople@police@colors}{