| 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{hairshadow} |
| 17 |
|
| 18 |
\newcommand{\tikzpeople@judge@paint}{ |
| 19 |
\tikzpeople@person@paintrighthorn |
| 20 |
\tikzpeople@judge@paintlefthair |
| 21 |
\tikzpeople@person@paintshirt |
| 22 |
\tikzpeople@judge@paintundershirt |
| 23 |
\tikzpeople@person@painthead |
| 24 |
\tikzpeople@judge@paintrighthair |
| 25 |
\tikzpeople@person@paintgoatee |
| 26 |
\tikzpeople@person@paintlefthorn |
| 27 |
\tikzpeople@person@painthalo |
| 28 |
} |
| 29 |
|
| 30 |
\newcommand{\tikzpeople@judge@definecolors}{ |
| 31 |
\definecolor{shirt}{RGB}{0,0,0} |
| 32 |
\definecolor{undershirt}{rgb}{0.9,0.9,0.9} |
| 33 |
\definecolor{hair}{RGB}{204,161,107} |
| 34 |
\definecolor{hairshadow}{RGB}{186, 137, 55} |
| 35 |
} |
| 36 |
|
| 37 |
\newcommand{\tikzpeople@judge@definestyles}{ |
| 38 |
\if@tikzpeople@saturated |
| 39 |
\tikzset{ |
| 40 |
hairshadow/.style={color=\tikzpeople@hairshadow} |
| 41 |
} |
| 42 |
\else |
| 43 |
\tikzset{ |
| 44 |
hairshadow/.style={color=\tikzpeople@hairshadow} |
| 45 |
} |
| 46 |
\fi |
| 47 |
} |
| 48 |
|
| 49 |
\newcommand{\tikzpeople@judge@paintlefthair}{ |
| 50 |
\draw[hair,join=bevel, shading angle=45] |
| 51 |
(25:2.7pt) to[out=330,in=80,out looseness=.5] (3.3pt,-3pt) -- (2pt,-3pt); |
| 52 |
\path[postaction={decorate},decoration={ |
| 53 |
markings, |
| 54 |
mark=between positions 0.03 and 1 step .76pt*\scalingfactor with {\pgftransformscale{\scalingfactor} |
| 55 |
\if@tikzpeople@mirrored |
| 56 |
\pgftransformyscale{-1} |
| 57 |
\fi |
| 58 |
\path[fill=\tikzpeople@hairshadow] |
| 59 |
(.39pt,-.06pt) ellipse |
| 60 |
(.39pt and .27pt + 0.02*\pgfkeysvalueof{/pgf/decoration/mark info/sequence number}); |
| 61 |
\path[fill=\tikzpeople@hair\if@tikzpeople@saturated!80\else!50\fi,draw=\tikzpeople@hairshadow] |
| 62 |
(.39pt,0pt) ellipse |
| 63 |
(.39pt and .27pt +0.02*\pgfkeysvalueof{/pgf/decoration/mark info/sequence number}); |
| 64 |
} |
| 65 |
}] (25:2.7pt) to[out=320,in=80,out looseness=.5] (3.3pt,-3pt); |
| 66 |
} |
| 67 |
|
| 68 |
\newcommand{\tikzpeople@judge@paintrighthair}{ |
| 69 |
\fill[hairshadow] |
| 70 |
(10:3.05pt) arc (10:135:3.05pt) -- (-1pt,.4pt) |
| 71 |
to[out=60,in=160,out looseness=1.4] (.9pt,1pt) |
| 72 |
to[out=40,in=95,out looseness=1.4] (10:3.05pt); |
| 73 |
\path[decorate, decoration={markings, |
| 74 |
mark=at position .165 with {\coordinate (tikzpeople@tmp1) at (0,\if@tikzpeople@mirrored -1*\fi\scalingfactor*.2pt);}, |
| 75 |
mark=at position .330 with {\coordinate (tikzpeople@tmp2) at (0,\if@tikzpeople@mirrored -1*\fi\scalingfactor*.2pt);}, |
| 76 |
mark=at position .495 with {\coordinate (tikzpeople@tmp3) at (0,\if@tikzpeople@mirrored -1*\fi\scalingfactor*.2pt);}, |
| 77 |
mark=at position .660 with {\coordinate (tikzpeople@tmp4) at (0,\if@tikzpeople@mirrored -1*\fi\scalingfactor*.2pt);}, |
| 78 |
mark=at position .825 with {\coordinate (tikzpeople@tmp5) at (0,\if@tikzpeople@mirrored -1*\fi\scalingfactor*.2pt);}, |
| 79 |
}] (150:3.1pt) to[out=240,in=120,in looseness=.3] (220:4.8pt); |
| 80 |
\draw[hair,join=bevel, shading angle=-45, postaction={decorate},decoration={ |
| 81 |
markings, |
| 82 |
mark=between positions 0.614 and 0.82 step .84pt*\scalingfactor with { |
| 83 |
\pgftransformscale{\scalingfactor} |
| 84 |
\if@tikzpeople@mirrored |
| 85 |
\pgftransformyscale{-1} |
| 86 |
\fi |
| 87 |
\fill[\tikzpeople@hairshadow] |
| 88 |
(-.06pt,0) to[out=70,in=190+2*\pgfkeysvalueof{/pgf/decoration/mark info/sequence number},out looseness=.8] |
| 89 |
++(46.5+2*\pgfkeysvalueof{/pgf/decoration/mark info/sequence number}:3.7pt-.27pt*\pgfkeysvalueof{/pgf/decoration/mark info/sequence number}) |
| 90 |
to[out=190+2*\pgfkeysvalueof{/pgf/decoration/mark info/sequence number},in=70,in looseness=.8] (.05pt,0); |
| 91 |
\path[fill=\tikzpeople@hairshadow] (.33pt,0pt) circle (.43pt); |
| 92 |
\path[fill=\tikzpeople@hair\if@tikzpeople@saturated!80\else!50\fi,draw=\tikzpeople@hairshadow] |
| 93 |
(.31pt,-.025pt) circle (.37pt); |
| 94 |
} |
| 95 |
}] (10:3pt) to[out=90,in=300] (30:3.1pt) arc (30:150:3.1pt) to[out=190,in=140] (tikzpeople@tmp1) |
| 96 |
to[out=150,in=135] (tikzpeople@tmp2) to[out=155,in=140] (tikzpeople@tmp3) to[out=160,in=145] (tikzpeople@tmp4) |
| 97 |
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) |
| 98 |
to [out=100,in=260,out looseness=1] (-1pt,.6pt) to [out=80,in=160,out looseness=1.4] (.9pt,1.4pt) |
| 99 |
to [out=40,in=92,in looseness=1.1,out looseness=1.6] (10:3pt) -- cycle; |
| 100 |
} |
| 101 |
|
| 102 |
\newcommand{\tikzpeople@judge@paintundershirt}{ |
| 103 |
\begin{scope} |
| 104 |
\draw[undershirt] (320:3pt) to[out=320,in=0, out looseness=1.5] (295:6.8pt) |
| 105 |
to[out=290,in=310,looseness=1.3] ++(-1.1pt,-.7pt) |
| 106 |
to[out=250,in=300,looseness=1.4] ++(-1.2pt,-.2pt) |
| 107 |
to[out=220,in=280,looseness=1.4] ++(-1.2pt,.3pt) |
| 108 |
to[out=220,in=260,looseness=1.4] ++(-1.1pt,.5pt) |
| 109 |
to[out=190,in=230, in looseness=1.3] (235:3pt); |
| 110 |
\end{scope} |
| 111 |
} |
| 112 |
|
| 113 |
\newcommand{\tikzpeople@judge@colors}{ |
| 114 |
shirt/200/{-1/-1},hair/160/{-.5/1.4},hairshadow/20/{.25/1.3}, skin/0/{.25/.4}, |
| 115 |
undershirt/180/{-.6/-.6}% |
| 116 |
} |