| 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{details} |
| 17 |
\tikzpeople@addcolorkey{pattern} |
| 18 |
|
| 19 |
\newcommand{\tikzpeople@jester@paint}{ |
| 20 |
{ |
| 21 |
\tikzpeople@person@paintrighthorn |
| 22 |
} |
| 23 |
\tikzpeople@person@paintshirt |
| 24 |
\tikzpeople@jester@paintshirtdetails |
| 25 |
\tikzpeople@person@painthead |
| 26 |
\tikzpeople@person@paintgoatee |
| 27 |
\tikzpeople@person@painthair |
| 28 |
\tikzpeople@jester@painthat |
| 29 |
{ |
| 30 |
\tikzpeople@person@paintlefthorn |
| 31 |
} |
| 32 |
\tikzpeople@person@painthalo |
| 33 |
} |
| 34 |
|
| 35 |
\newcommand{\tikzpeople@jester@paintshirtdetails}{ |
| 36 |
\begin{scope} |
| 37 |
\clip |
| 38 |
(-4pt,-8pt) .. controls (-2pt,-10pt) and (3pt,-9pt) .. |
| 39 |
( 5pt,-7pt) .. controls ( 5pt, 0pt) and (-5pt,0pt) .. |
| 40 |
(-4pt,-8pt); |
| 41 |
\coordinate (tikzpeople@tmp) at (2pt,.4pt); |
| 42 |
\path (-10.5pt,-4pt)coordinate (tikzpeople@tmp1) |
| 43 |
++(tikzpeople@tmp) coordinate (tikzpeople@tmp2) ++(tikzpeople@tmp) coordinate (tikzpeople@tmp3) ++(tikzpeople@tmp) coordinate (tikzpeople@tmp4) |
| 44 |
++(tikzpeople@tmp) coordinate (tikzpeople@tmp5) ++(tikzpeople@tmp) coordinate (tikzpeople@tmp6) ++(tikzpeople@tmp) coordinate (tikzpeople@tmp7) |
| 45 |
++(tikzpeople@tmp) coordinate (tikzpeople@tmp8) ++(tikzpeople@tmp) coordinate (tikzpeople@tmp9) ++(tikzpeople@tmp) coordinate (tikzpeople@tmp10) |
| 46 |
++(tikzpeople@tmp) coordinate (tikzpeople@tmp11); |
| 47 |
\path (-7pt,-12pt) coordinate (tikzpeople@tmp12) |
| 48 |
++(tikzpeople@tmp) coordinate (tikzpeople@tmp13) ++(tikzpeople@tmp) coordinate (tikzpeople@tmp14) ++(tikzpeople@tmp) coordinate (tikzpeople@tmp15) |
| 49 |
++(tikzpeople@tmp) coordinate (tikzpeople@tmp16) ++(tikzpeople@tmp) coordinate (tikzpeople@tmp17) ++(tikzpeople@tmp) coordinate (tikzpeople@tmp18) |
| 50 |
++(tikzpeople@tmp) coordinate (tikzpeople@tmp19) ++(tikzpeople@tmp) coordinate (tikzpeople@tmp20); |
| 51 |
\fill[pattern] (tikzpeople@tmp2) |
| 52 |
to[in=100,out=300] (tikzpeople@tmp13) to[in=260,out=50] (tikzpeople@tmp6) to[in=100,out=300] (tikzpeople@tmp17) |
| 53 |
to[in=260,out=50] (tikzpeople@tmp10) -- (tikzpeople@tmp11) to[in=50,out=260] (tikzpeople@tmp18) |
| 54 |
to[in=300,out=100] (tikzpeople@tmp7) to[in=50,out=260] (tikzpeople@tmp14) to[in=300,out=100] (tikzpeople@tmp3) -- |
| 55 |
(tikzpeople@tmp4) to[in=100,out=300] (tikzpeople@tmp15) to[in=260,out=50] (tikzpeople@tmp8) |
| 56 |
to[in=100,out=300] (tikzpeople@tmp19) -- (tikzpeople@tmp20) to[in=300,out=100] (tikzpeople@tmp9) |
| 57 |
to[in=50,out=260] (tikzpeople@tmp16) to[in=300,out=100] (tikzpeople@tmp5) to[in=50,out=260](tikzpeople@tmp12) |
| 58 |
to[in=300,out=100](tikzpeople@tmp1) --cycle; |
| 59 |
\end{scope} |
| 60 |
} |
| 61 |
|
| 62 |
\newcommand{\tikzpeople@jester@painthat}{ |
| 63 |
\begin{scope} |
| 64 |
\pgftransformrotate{10} |
| 65 |
\draw[hat] |
| 66 |
(180:3.2pt) to[out=60,in=60] ++(91:3pt) to[out=240,in=90] ++(271:.9pt) |
| 67 |
to[out=270,in=85] ++(268:.9pt) coordinate (tikzpeople@tmp1) to[out=130,in=170] |
| 68 |
++(73:4pt) to[out=350,in=180] (.5pt,3.3pt) to[out=0,in=200] ++(45:2.5pt) |
| 69 |
to[out=20,in=80] ++(290:4pt) coordinate (tikzpeople@tmp2) to[out=100,in=75] |
| 70 |
++(120:2.1pt) to[out=255,in=100] (0:3.1pt) to[out=170,in=10] (180:3.1pt); |
| 71 |
\path[pattern] |
| 72 |
(0:3.2pt) ++(0,-.2pt) to[out=170,in=10] ++(180:6.4pt) to[out=110,in=250] |
| 73 |
++(0,1.2pt) to[out=10,in=170] ++(0:6.4pt) to[out=290,in=70] ++(0,-1.22pt) |
| 74 |
--cycle; |
| 75 |
\begin{scope} |
| 76 |
\clip (tikzpeople@tmp1) circle (.4pt) (tikzpeople@tmp2) circle (.4pt); |
| 77 |
\path[details] (tikzpeople@tmp1) ++(-.15pt,.15pt) circle (.7pt); |
| 78 |
\path[details] (tikzpeople@tmp2) ++(-.15pt,.15pt) circle (.7pt); |
| 79 |
\end{scope} |
| 80 |
\end{scope} |
| 81 |
} |
| 82 |
|
| 83 |
\newcommand{\tikzpeople@jester@definecolors}{ |
| 84 |
\definecolor{shirt}{RGB}{100,187,41} |
| 85 |
\definecolor{pattern}{RGB}{208,48,0} |
| 86 |
\definecolor{hat}{RGB}{100,187,41} |
| 87 |
\definecolor{details}{RGB}{225,87,0} |
| 88 |
} |
| 89 |
\newcommand{\tikzpeople@jester@definestyles}{ |
| 90 |
\if@tikzpeople@saturated |
| 91 |
\tikzset{ |
| 92 |
pattern/.style={color=\tikzpeople@pattern,top color=\tikzpeople@pattern!70, bottom color=\tikzpeople@pattern,shading angle=45}, |
| 93 |
details/.style={color=\tikzpeople@details,inner color=\tikzpeople@details!50, outer color=\tikzpeople@details} |
| 94 |
} |
| 95 |
\else |
| 96 |
\tikzset{ |
| 97 |
pattern/.style={color=\tikzpeople@pattern!80,top color=\tikzpeople@pattern!40, bottom color=\tikzpeople@pattern!80,shading angle=45}, |
| 98 |
details/.style={color=\tikzpeople@details,inner color=\tikzpeople@details!30, outer color=\tikzpeople@details!90} |
| 99 |
} |
| 100 |
\fi |
| 101 |
} |
| 102 |
|
| 103 |
\newcommand{\tikzpeople@jester@colors}{ |
| 104 |
shirt/200/{-1/-1}, hat/40/{.7/1.9}, skin/20/{.6/.9}, |
| 105 |
details/150/{.85/1.45,-1.05/1.1}, pattern/0/{-.4/1.1,.9/-.2}, |
| 106 |
hair/180/{-.6/.75}% |
| 107 |
} |