summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.mexican.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-11-28 23:47:56 +0000
committerKarl Berry <karl@freefriends.org>2016-11-28 23:47:56 +0000
commit3bb968911fe7c1366654b04283a2b0c90968f212 (patch)
tree07a7bcdabc295e16cdf5c0782c4cf7187f134e0c /Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.mexican.sty
parent17096b7bd77fd18fc0e73e628b1ce5ab1dddca60 (diff)
tikzpeople (28nov16)
git-svn-id: svn://tug.org/texlive/trunk@42598 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.mexican.sty')
-rw-r--r--Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.mexican.sty90
1 files changed, 40 insertions, 50 deletions
diff --git a/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.mexican.sty b/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.mexican.sty
index efec50d6398..590635cec4a 100644
--- a/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.mexican.sty
+++ b/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.mexican.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{hat}
\tikzpeople@addcolorkey{ringtop}
\tikzpeople@addcolorkey{ringmid}
\tikzpeople@addcolorkey{ringbot}
@@ -43,7 +27,6 @@
}
\newcommand{\tikzpeople@mexican@definecolors}{
- \definecolor{skin}{rgb}{0.84,0.58,0.24}
\definecolor{hair}{rgb}{0,0,0}
\definecolor{shirt}{rgb}{0,0.3,0}
\definecolor{ringtop}{rgb}{1,1,0}
@@ -53,15 +36,21 @@
}
\newcommand{\tikzpeople@mexican@definestyles}{
- \tikzstyle{shirt}=[top color=\tikzpeople@shirt!60, bottom color=\tikzpeople@shirt!80,shading angle=45];
- \tikzstyle{ringtop}=[top color=\tikzpeople@ringtop!80, bottom color=\tikzpeople@ringtop,shading angle=45];
- \tikzstyle{ringmid}=[top color=\tikzpeople@ringmid!80, bottom color=\tikzpeople@ringmid,shading angle=45];
- \tikzstyle{ringbot}=[top color=\tikzpeople@ringbot!80, bottom color=\tikzpeople@ringbot,shading angle=45];
- \tikzstyle{skin}=[color=\tikzpeople@skin!80,top color=\tikzpeople@skin!40, bottom color=\tikzpeople@skin!80,shading angle=45];
- \tikzstyle{hat}=[color=\tikzpeople@hat!80,top color=\tikzpeople@hat!40, bottom color=\tikzpeople@hat!80,shading angle=45];
- \tikzstyle{innerhat}=[color=\tikzpeople@hat!80,top color=\tikzpeople@hat!60, bottom color=\tikzpeople@hat,shading angle=45];
- \tikzstyle{hair}=[color=\tikzpeople@hair!80,top color=\tikzpeople@hair!40, bottom color=\tikzpeople@hair!80];
- \tikzstyle{goatee}=[color=\tikzpeople@hair!80,top color=\tikzpeople@hair!40, bottom color=\tikzpeople@hair!80,shading angle=45];
+ \if@tikzpeople@saturated
+ \tikzset{
+ ringtop/.style ={top color=\tikzpeople@ringtop!80, bottom color=\tikzpeople@ringtop,shading angle=45},
+ ringmid/.style ={top color=\tikzpeople@ringmid!80, bottom color=\tikzpeople@ringmid,shading angle=45},
+ ringbot/.style ={top color=\tikzpeople@ringbot!80, bottom color=\tikzpeople@ringbot,shading angle=45},
+ innerhat/.style={color=\tikzpeople@hat,top color=\tikzpeople@hat!80, bottom color=\tikzpeople@hat,shading angle=45}
+ }
+ \else
+ \tikzset{
+ ringtop/.style ={top color=\tikzpeople@ringtop!80, bottom color=\tikzpeople@ringtop,shading angle=45},
+ ringmid/.style ={top color=\tikzpeople@ringmid!80, bottom color=\tikzpeople@ringmid,shading angle=45},
+ ringbot/.style ={top color=\tikzpeople@ringbot!80, bottom color=\tikzpeople@ringbot,shading angle=45},
+ innerhat/.style={color=\tikzpeople@hat!80,top color=\tikzpeople@hat!60, bottom color=\tikzpeople@hat,shading angle=45}
+ }
+ \fi
}
\newcommand{\tikzpeople@mexican@painthair}{
@@ -88,31 +77,32 @@
}
\newcommand{\tikzpeople@mexican@paintrings}{
- \shade[ringtop]
- (-3.4 pt,-4 pt) .. controls (-2.0pt,-6.0pt) and ( 3pt,-5 pt) ..
- ( 3.85pt,-3.5pt) .. controls ( 3.6pt,-3.1pt) ..
- ( 3.4 pt,-3 pt) .. controls ( 3 pt,-4.2pt) and (-2pt,-5.3pt) .. (-3pt,-3.4pt);
- \draw[color=\tikzpeople@ringtop,dash pattern=on 0.08*\scalingfactor off 0.15*\scalingfactor,line width=0.08*\scalingfactor]
- (-3.4 pt,-4.2pt) .. controls (-2pt,-6.2pt) and (3pt,-5.2pt) ..
- ( 3.85pt,-3.7pt);
-
- \shade[ringmid]
- (-3.9pt,-5.5pt) .. controls (-2 pt,-7.5pt) and (3pt,-6.5pt) ..
- (4.55pt,-4.7pt) .. controls ( 4.45pt,-4.3pt) ..
- (4.2 pt,-4 pt) .. controls ( 3 pt,-5.7pt) and (-2pt,-6.7pt) ..
- (-3.7pt,-4.8pt);
- \draw [color=\tikzpeople@ringmid,dash pattern=on 0.08*\scalingfactor off 0.15*\scalingfactor,line width=0.08*\scalingfactor]
- (-3.9pt,-5.7pt) .. controls (-2pt,-7.7pt) and (3pt,-6.7pt) .. (4.55pt, -4.9pt);
+ \begin{scope}
+ \clip (-4pt,-8pt) .. controls (-2pt,-10pt) and ( 3pt,-9pt) ..
+ ( 5pt,-7pt) .. controls ( 5pt, 0pt) and (-5pt, 0pt) ..
+ (-4pt,-8pt);
+ \shade[ringtop]
+ (-3.4 pt,-4pt) .. controls (-2.0pt,-6.0pt) and ( 3pt,-5 pt) ..
+ ( 3.85pt,-3.5pt) .. controls ( 3.6pt,-3.1pt) ..
+ ( 3.4 pt,-3 pt) .. controls ( 3 pt,-4.2pt) and (-2pt,-5.3pt) .. (-3pt,-3.4pt);
+ \draw[color=\tikzpeople@ringtop,dash pattern=on 0 off 0.2*\scalingfactor,line width=0.08*\scalingfactor,line cap=round]
+ (-3.4 pt,-4.2pt) .. controls (-2pt,-6.2pt) and (3pt,-5.2pt) ..
+ ( 3.85pt,-3.7pt);
- \shade [ringbot]
- (-4 pt, -7 pt) .. controls (-2 pt,-9 pt) and ( 3pt,-8 pt) ..
- ( 4.9 pt, -6 pt) .. controls ( 4.9pt,-5.8pt) ..
- ( 4.75pt,-5.2pt) .. controls ( 3 pt,-7.2pt) and (-2pt,-8.2pt) ..
- (-4 pt,-6.2pt);
- \draw [color=\tikzpeople@ringbot,dash pattern=on 0.08*\scalingfactor off 0.15*\scalingfactor,line width=0.08*\scalingfactor]
- (-4pt,-7.2pt) .. controls (-2pt,-9.2pt) and (3pt,-8.2pt) .. (4.9pt, -6.2pt);
+ \shade[ringmid]
+ (-4pt,-5.4pt) .. controls (-2pt,-7.5pt) and (3pt,-6.5pt) ..
+ (4.6pt,-4.65pt) -- (4.25 pt,-3.95pt) .. controls (3pt,-5.7pt) and
+ (-2pt,-6.7pt) .. (-3.8pt,-4.7pt);
+ \draw [color=\tikzpeople@ringmid,dash pattern=on 0 off 0.2*\scalingfactor,line width=0.08*\scalingfactor,line cap=round]
+ (-4pt,-5.6pt) .. controls (-2pt,-7.7pt) and (3pt,-6.7pt) .. (4.6pt, -4.8pt);
- \draw[color=\tikzpeople@shirt!80]
+ \shade [ringbot]
+ (-4.1pt,-6.9pt) .. controls (-2pt,-9pt) and (3pt,-8pt) .. (5pt, -5.9pt) --
+ (4.8pt,-5.15pt) .. controls (3pt,-7.2pt) and (-2pt,-8.2pt) .. (-4.1pt,-6.1pt);
+ \draw [color=\tikzpeople@ringbot,dash pattern=on 0 off 0.2*\scalingfactor,line width=0.08*\scalingfactor,line cap=round]
+ (-4.1pt,-7.1pt) .. controls (-2pt,-9.2pt) and (3pt,-8.2pt) .. (5pt, -6.1pt);
+ \end{scope}
+ \draw[color=\tikzpeople@shirt\if@tikzpeople@saturated\else!80\fi]
(-4pt,-8pt) .. controls (-2pt,-10pt) and ( 3pt,-9pt) ..
( 5pt,-7pt) .. controls ( 5pt, 0pt) and (-5pt, 0pt) ..
(-4pt,-8pt);
@@ -120,5 +110,5 @@
\newcommand{\tikzpeople@mexican@colors}{
shirt/350/{.5/0}, hat/30/{1/1.25}, hair/150/{-1.1/.5}, skin/10/{.35/.5},
- ringtop/170/{-.9/-.15}, ringmid/190/{-1/-.6}, ringbot/210/{-1.1/-1}%
+ ringtop/170/{-.9/-.25}, ringmid/190/{-1/-.7}, ringbot/210/{-1.1/-1.1}%
}