summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.judge.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.judge.sty')
-rw-r--r--Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.judge.sty83
1 files changed, 41 insertions, 42 deletions
diff --git a/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.judge.sty b/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.judge.sty
index 4d3ecb06414..c1539ee9ddf 100644
--- a/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.judge.sty
+++ b/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.judge.sty
@@ -13,22 +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{hairshadow}
\newcommand{\tikzpeople@judge@paint}{
@@ -44,7 +28,6 @@
}
\newcommand{\tikzpeople@judge@definecolors}{
- \definecolor{skin}{rgb}{0.84,0.58,0.24}
\definecolor{shirt}{RGB}{0,0,0}
\definecolor{undershirt}{rgb}{0.9,0.9,0.9}
\definecolor{hair}{RGB}{204,161,107}
@@ -52,38 +35,47 @@
}
\newcommand{\tikzpeople@judge@definestyles}{
- \tikzstyle{undershirt}=[color=\tikzpeople@undershirt!80,top color=\tikzpeople@undershirt!40, bottom color=\tikzpeople@undershirt!80,shading angle=45];
- \tikzstyle{shirt}=[color=\tikzpeople@shirt!80,top color=\tikzpeople@shirt!40, bottom color=\tikzpeople@shirt!80,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=90];
- \tikzstyle{hairshadow}=[color=\tikzpeople@hairshadow];
- \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{
+ hairshadow/.style={color=\tikzpeople@hairshadow}
+ }
+ \else
+ \tikzset{
+ hairshadow/.style={color=\tikzpeople@hairshadow}
+ }
+ \fi
}
\newcommand{\tikzpeople@judge@paintlefthair}{
- \draw[hair,join=bevel, shading angle=45] (25:2.7pt) to[out=330,in=80,out looseness=.5] (3.3pt,-3pt) -- (2pt,-3pt);
+ \draw[hair,join=bevel, shading angle=45]
+ (25:2.7pt) to[out=330,in=80,out looseness=.5] (3.3pt,-3pt) -- (2pt,-3pt);
\path[postaction={decorate},decoration={
markings,
mark=between positions 0.03 and 1 step .76pt*\scalingfactor with {\pgftransformscale{\scalingfactor}
\if@tikzpeople@mirrored
\pgftransformyscale{-1}
\fi
- \path[fill=\tikzpeople@hairshadow] (.39pt,-.06pt) ellipse (.39pt and .27pt + 0.02*\pgfkeysvalueof{/pgf/decoration/mark info/sequence number});
- \path[fill=\tikzpeople@hair!50,draw=\tikzpeople@hairshadow] (.39pt,0pt) ellipse (.39pt and .27pt +0.02*\pgfkeysvalueof{/pgf/decoration/mark info/sequence number});
+ \path[fill=\tikzpeople@hairshadow]
+ (.39pt,-.06pt) ellipse
+ (.39pt and .27pt + 0.02*\pgfkeysvalueof{/pgf/decoration/mark info/sequence number});
+ \path[fill=\tikzpeople@hair\if@tikzpeople@saturated!80\else!50\fi,draw=\tikzpeople@hairshadow]
+ (.39pt,0pt) ellipse
+ (.39pt and .27pt +0.02*\pgfkeysvalueof{/pgf/decoration/mark info/sequence number});
}
}] (25:2.7pt) to[out=320,in=80,out looseness=.5] (3.3pt,-3pt);
}
\newcommand{\tikzpeople@judge@paintrighthair}{
- \fill[hairshadow] (10:3.05pt) arc (10:135:3.05pt) -- (-1pt,.4pt) to [out=60,in=160,out looseness=1.4] (.9pt,1pt) to [out=40,in=95,out looseness=1.4] (10:3.05pt);
+ \fill[hairshadow]
+ (10:3.05pt) arc (10:135:3.05pt) -- (-1pt,.4pt)
+ to[out=60,in=160,out looseness=1.4] (.9pt,1pt)
+ to[out=40,in=95,out looseness=1.4] (10:3.05pt);
\path[decorate, decoration={markings,
- mark=at position .165 with {\coordinate (judgelock1) at (0,\if@tikzpeople@mirrored -1*\fi\scalingfactor*.2pt);},
- mark=at position .330 with {\coordinate (judgelock2) at (0,\if@tikzpeople@mirrored -1*\fi\scalingfactor*.2pt);},
- mark=at position .495 with {\coordinate (judgelock3) at (0,\if@tikzpeople@mirrored -1*\fi\scalingfactor*.2pt);},
- mark=at position .660 with {\coordinate (judgelock4) at (0,\if@tikzpeople@mirrored -1*\fi\scalingfactor*.2pt);},
- mark=at position .825 with {\coordinate (judgelock5) at (0,\if@tikzpeople@mirrored -1*\fi\scalingfactor*.2pt);},
+ mark=at position .165 with {\coordinate (tikzpeople@tmp1) at (0,\if@tikzpeople@mirrored -1*\fi\scalingfactor*.2pt);},
+ mark=at position .330 with {\coordinate (tikzpeople@tmp2) at (0,\if@tikzpeople@mirrored -1*\fi\scalingfactor*.2pt);},
+ mark=at position .495 with {\coordinate (tikzpeople@tmp3) at (0,\if@tikzpeople@mirrored -1*\fi\scalingfactor*.2pt);},
+ mark=at position .660 with {\coordinate (tikzpeople@tmp4) at (0,\if@tikzpeople@mirrored -1*\fi\scalingfactor*.2pt);},
+ mark=at position .825 with {\coordinate (tikzpeople@tmp5) at (0,\if@tikzpeople@mirrored -1*\fi\scalingfactor*.2pt);},
}] (150:3.1pt) to[out=240,in=120,in looseness=.3] (220:4.8pt);
\draw[hair,join=bevel, shading angle=-45, postaction={decorate},decoration={
markings,
@@ -92,13 +84,17 @@
\if@tikzpeople@mirrored
\pgftransformyscale{-1}
\fi
- \fill[\tikzpeople@hairshadow] (-.06pt,0) to [out=70,in=190+2*\pgfkeysvalueof{/pgf/decoration/mark info/sequence number},out looseness=.8] ++(46.5+2*\pgfkeysvalueof{/pgf/decoration/mark info/sequence number}:3.7pt-.27pt*\pgfkeysvalueof{/pgf/decoration/mark info/sequence number}) to [out=190+2*\pgfkeysvalueof{/pgf/decoration/mark info/sequence number},in=70,in looseness=.8] (.05pt,0);
+ \fill[\tikzpeople@hairshadow]
+ (-.06pt,0) to[out=70,in=190+2*\pgfkeysvalueof{/pgf/decoration/mark info/sequence number},out looseness=.8]
+ ++(46.5+2*\pgfkeysvalueof{/pgf/decoration/mark info/sequence number}:3.7pt-.27pt*\pgfkeysvalueof{/pgf/decoration/mark info/sequence number})
+ to[out=190+2*\pgfkeysvalueof{/pgf/decoration/mark info/sequence number},in=70,in looseness=.8] (.05pt,0);
\path[fill=\tikzpeople@hairshadow] (.33pt,0pt) circle (.43pt);
- \path[fill=\tikzpeople@hair!50,draw=\tikzpeople@hairshadow] (.31pt,-.025pt) circle (.37pt);
+ \path[fill=\tikzpeople@hair\if@tikzpeople@saturated!80\else!50\fi,draw=\tikzpeople@hairshadow]
+ (.31pt,-.025pt) circle (.37pt);
}
- }] (10:3pt) to[out=90,in=300] (30:3.1pt) arc (30:150:3.1pt) to[out=190,in=140] (judgelock1)
- to[out=150,in=135] (judgelock2) to[out=155,in=140] (judgelock3) to[out=160,in=145] (judgelock4)
- to[out=165,in=150] (judgelock5) to[out=170,in=120] (220:4.8pt) to [out=300,in=160,out looseness=1] (260:4.8pt)
+ }] (10:3pt) to[out=90,in=300] (30:3.1pt) arc (30:150:3.1pt) to[out=190,in=140] (tikzpeople@tmp1)
+ to[out=150,in=135] (tikzpeople@tmp2) to[out=155,in=140] (tikzpeople@tmp3) to[out=160,in=145] (tikzpeople@tmp4)
+ to[out=165,in=150] (tikzpeople@tmp5) to[out=170,in=120] (220:4.8pt) to [out=300,in=160,out looseness=1] (260:4.8pt)
to [out=100,in=260,out looseness=1] (-1pt,.6pt) to [out=80,in=160,out looseness=1.4] (.9pt,1.4pt)
to [out=40,in=92,in looseness=1.1,out looseness=1.6] (10:3pt) -- cycle;
}
@@ -106,12 +102,15 @@
\newcommand{\tikzpeople@judge@paintundershirt}{
\begin{scope}
\draw[undershirt] (320:3pt) to[out=320,in=0, out looseness=1.5] (295:6.8pt)
- to[out=290,in=310,looseness=1.3] ++(-1.1pt,-.7pt) to[out=250,in=300,looseness=1.4] ++(-1.2pt,-.2pt)
- to[out=220,in=280,looseness=1.4] ++(-1.2pt,.3pt) to[out=220,in=260,looseness=1.4] ++(-1.1pt,.5pt)
+ to[out=290,in=310,looseness=1.3] ++(-1.1pt,-.7pt)
+ to[out=250,in=300,looseness=1.4] ++(-1.2pt,-.2pt)
+ to[out=220,in=280,looseness=1.4] ++(-1.2pt,.3pt)
+ to[out=220,in=260,looseness=1.4] ++(-1.1pt,.5pt)
to[out=190,in=230, in looseness=1.3] (235:3pt);
\end{scope}
}
\newcommand{\tikzpeople@judge@colors}{
- shirt/200/{-1/-1},hair/160/{-.5/1.4},hairshadow/20/{.25/1.3}, skin/0/{.25/.4}, undershirt/180/{-.6/-.6}%
+ shirt/200/{-1/-1},hair/160/{-.5/1.4},hairshadow/20/{.25/1.3}, skin/0/{.25/.4},
+ undershirt/180/{-.6/-.6}%
}