| 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{ringtop} |
| 17 |
\tikzpeople@addcolorkey{ringmid} |
| 18 |
\tikzpeople@addcolorkey{ringbot} |
| 19 |
|
| 20 |
\newcommand{\tikzpeople@mexican@paint}{ |
| 21 |
\tikzpeople@person@paintshirt |
| 22 |
\tikzpeople@mexican@paintrings |
| 23 |
\tikzpeople@person@painthead |
| 24 |
\tikzpeople@mexican@painthair |
| 25 |
\tikzpeople@mexican@painthat |
| 26 |
\tikzpeople@person@paintgoatee |
| 27 |
} |
| 28 |
|
| 29 |
\newcommand{\tikzpeople@mexican@definecolors}{ |
| 30 |
\definecolor{hair}{rgb}{0,0,0} |
| 31 |
\definecolor{shirt}{rgb}{0,0.3,0} |
| 32 |
\definecolor{ringtop}{rgb}{1,1,0} |
| 33 |
\definecolor{ringmid}{rgb}{0,0.8,1} |
| 34 |
\definecolor{ringbot}{rgb}{1,0,0} |
| 35 |
\definecolor{hat}{rgb}{0.7,0,0} |
| 36 |
} |
| 37 |
|
| 38 |
\newcommand{\tikzpeople@mexican@definestyles}{ |
| 39 |
\if@tikzpeople@saturated |
| 40 |
\tikzset{ |
| 41 |
ringtop/.style ={top color=\tikzpeople@ringtop!80, bottom color=\tikzpeople@ringtop,shading angle=45}, |
| 42 |
ringmid/.style ={top color=\tikzpeople@ringmid!80, bottom color=\tikzpeople@ringmid,shading angle=45}, |
| 43 |
ringbot/.style ={top color=\tikzpeople@ringbot!80, bottom color=\tikzpeople@ringbot,shading angle=45}, |
| 44 |
innerhat/.style={color=\tikzpeople@hat,top color=\tikzpeople@hat!80, bottom color=\tikzpeople@hat,shading angle=45} |
| 45 |
} |
| 46 |
\else |
| 47 |
\tikzset{ |
| 48 |
ringtop/.style ={top color=\tikzpeople@ringtop!80, bottom color=\tikzpeople@ringtop,shading angle=45}, |
| 49 |
ringmid/.style ={top color=\tikzpeople@ringmid!80, bottom color=\tikzpeople@ringmid,shading angle=45}, |
| 50 |
ringbot/.style ={top color=\tikzpeople@ringbot!80, bottom color=\tikzpeople@ringbot,shading angle=45}, |
| 51 |
innerhat/.style={color=\tikzpeople@hat!80,top color=\tikzpeople@hat!60, bottom color=\tikzpeople@hat,shading angle=45} |
| 52 |
} |
| 53 |
\fi |
| 54 |
} |
| 55 |
|
| 56 |
\newcommand{\tikzpeople@mexican@painthair}{ |
| 57 |
\draw[hair] |
| 58 |
(-3.5pt, 1 pt) .. controls (-3.3pt, 0pt) and (-4.3pt,-1.1pt) .. |
| 59 |
(-4.5pt,-1.3pt) .. controls (-3.8pt,-2pt) and (-2 pt,-2.9pt) .. |
| 60 |
(-1.2pt,-3.3pt) .. controls (-1.6pt,-2pt) and (-1.6pt, 0 pt) .. |
| 61 |
(-1.3pt, 1 pt); |
| 62 |
} |
| 63 |
|
| 64 |
\newcommand{\tikzpeople@mexican@painthat}{ |
| 65 |
{ |
| 66 |
\pgftransformrotate{4} |
| 67 |
\draw[hat] (-0.3pt,2pt) ellipse (6.4pt and 2.2pt); |
| 68 |
\draw[innerhat] (-0.3pt,2.5pt) ellipse (5.4pt and 1.3pt); |
| 69 |
}{ |
| 70 |
\pgftransformrotate{1} |
| 71 |
\draw[hat] |
| 72 |
(-3 pt,2.3pt) .. controls (-3 pt,4.5pt) and (-1.4pt,6.7pt) .. |
| 73 |
(-0.7pt,6.7pt) .. controls ( 0.2pt,6.7pt) and ( 2.3pt,3.5pt) .. |
| 74 |
( 1.9pt,2.7pt) .. controls ( 1.2pt,2 pt) and (-2.3pt,1.8pt) .. |
| 75 |
(-3 pt,2.3pt); |
| 76 |
} |
| 77 |
} |
| 78 |
|
| 79 |
\newcommand{\tikzpeople@mexican@paintrings}{ |
| 80 |
\begin{scope} |
| 81 |
\clip (-4pt,-8pt) .. controls (-2pt,-10pt) and ( 3pt,-9pt) .. |
| 82 |
( 5pt,-7pt) .. controls ( 5pt, 0pt) and (-5pt, 0pt) .. |
| 83 |
(-4pt,-8pt); |
| 84 |
\shade[ringtop] |
| 85 |
(-3.4 pt,-4pt) .. controls (-2.0pt,-6.0pt) and ( 3pt,-5 pt) .. |
| 86 |
( 3.85pt,-3.5pt) .. controls ( 3.6pt,-3.1pt) .. |
| 87 |
( 3.4 pt,-3 pt) .. controls ( 3 pt,-4.2pt) and (-2pt,-5.3pt) .. (-3pt,-3.4pt); |
| 88 |
\draw[color=\tikzpeople@ringtop,dash pattern=on 0 off 0.2*\scalingfactor,line width=0.08*\scalingfactor,line cap=round] |
| 89 |
(-3.4 pt,-4.2pt) .. controls (-2pt,-6.2pt) and (3pt,-5.2pt) .. |
| 90 |
( 3.85pt,-3.7pt); |
| 91 |
|
| 92 |
\shade[ringmid] |
| 93 |
(-4pt,-5.4pt) .. controls (-2pt,-7.5pt) and (3pt,-6.5pt) .. |
| 94 |
(4.6pt,-4.65pt) -- (4.25 pt,-3.95pt) .. controls (3pt,-5.7pt) and |
| 95 |
(-2pt,-6.7pt) .. (-3.8pt,-4.7pt); |
| 96 |
\draw [color=\tikzpeople@ringmid,dash pattern=on 0 off 0.2*\scalingfactor,line width=0.08*\scalingfactor,line cap=round] |
| 97 |
(-4pt,-5.6pt) .. controls (-2pt,-7.7pt) and (3pt,-6.7pt) .. (4.6pt, -4.8pt); |
| 98 |
|
| 99 |
\shade [ringbot] |
| 100 |
(-4.1pt,-6.9pt) .. controls (-2pt,-9pt) and (3pt,-8pt) .. (5pt, -5.9pt) -- |
| 101 |
(4.8pt,-5.15pt) .. controls (3pt,-7.2pt) and (-2pt,-8.2pt) .. (-4.1pt,-6.1pt); |
| 102 |
\draw [color=\tikzpeople@ringbot,dash pattern=on 0 off 0.2*\scalingfactor,line width=0.08*\scalingfactor,line cap=round] |
| 103 |
(-4.1pt,-7.1pt) .. controls (-2pt,-9.2pt) and (3pt,-8.2pt) .. (5pt, -6.1pt); |
| 104 |
\end{scope} |
| 105 |
\draw[color=\tikzpeople@shirt\if@tikzpeople@saturated\else!80\fi] |
| 106 |
(-4pt,-8pt) .. controls (-2pt,-10pt) and ( 3pt,-9pt) .. |
| 107 |
( 5pt,-7pt) .. controls ( 5pt, 0pt) and (-5pt, 0pt) .. |
| 108 |
(-4pt,-8pt); |
| 109 |
} |
| 110 |
|
| 111 |
\newcommand{\tikzpeople@mexican@colors}{ |
| 112 |
shirt/350/{.5/0}, hat/30/{1/1.25}, hair/150/{-1.1/.5}, skin/10/{.35/.5}, |
| 113 |
ringtop/170/{-.9/-.25}, ringmid/190/{-1/-.7}, ringbot/210/{-1.1/-1.1}% |
| 114 |
} |