summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.judge.sty
blob: 4d3ecb0641433bd19080aa36bc7a9d22764b4009 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
%% 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{undershirt}
\tikzpeople@addcolorkey{hairshadow}

\newcommand{\tikzpeople@judge@paint}{
	\tikzpeople@person@paintrighthorn
	\tikzpeople@judge@paintlefthair
	\tikzpeople@person@paintshirt
	\tikzpeople@judge@paintundershirt
	\tikzpeople@person@painthead
	\tikzpeople@judge@paintrighthair
	\tikzpeople@person@paintgoatee
	\tikzpeople@person@paintlefthorn
	\tikzpeople@person@painthalo
}

\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}
	\definecolor{hairshadow}{RGB}{186, 137, 55}
}

\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];
}

\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); 
	\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}); 
		}
	}] (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);
	\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);},
	}] (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,
		mark=between positions 0.614 and 0.82 step .84pt*\scalingfactor with {
			\pgftransformscale{\scalingfactor}
			\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);
			\path[fill=\tikzpeople@hairshadow] (.33pt,0pt) circle (.43pt); 
			\path[fill=\tikzpeople@hair!50,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) 
		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;
}

\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=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}%
}