diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.guard.sty')
-rwxr-xr-x | Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.guard.sty | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.guard.sty b/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.guard.sty new file mode 100755 index 00000000000..0500ae86c87 --- /dev/null +++ b/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.guard.sty @@ -0,0 +1,107 @@ +%% 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{details} +\tikzpeople@addcolorkey{hat} +\tikzpeople@addcolorkey{collar} +\tikzpeople@addcolorkey{lining} + +\newcommand{\tikzpeople@guard@paint}{ + \tikzpeople@person@paintshirt + \tikzpeople@person@painthead + \tikzpeople@guard@paintcollar + \tikzpeople@guard@paintshirtdetails + \tikzpeople@guard@painthat +} + +\newcommand{\tikzpeople@guard@paintshirtdetails}{ + \begin{scope} + \clip + (-4.0pt,-8.0pt) .. controls (-2pt,-10pt) and ( 3pt,-9pt) .. + ( 5.0pt,-7.0pt) .. controls ( 5pt, 0pt) and (-5pt, 0pt) .. + (-4.0pt,-8.0pt) (205:3.1pt) arc (205:335:3.1pt) to[out=200,in=340] (205:3.1pt) --cycle; + \draw[lining,postaction={ + decoration={ + markings, + mark=at position 0.1 with {\coordinate (A) at (0,\if@tikzpeople@mirrored\else-\fi.4pt*\scalingfactor);}, + mark=at position 0.23 with {\coordinate (B) at (0,\if@tikzpeople@mirrored\else-\fi.4pt*\scalingfactor);}, + mark=at position 0.50 with {\coordinate (C) at (0,\if@tikzpeople@mirrored\else-\fi.4pt*\scalingfactor);}, + mark=at position 0.62 with {\coordinate (D) at (0,\if@tikzpeople@mirrored\else-\fi.4pt*\scalingfactor);}, + mark=at position 0.75 with {\coordinate (E) at (0,\if@tikzpeople@mirrored\else-\fi.4pt*\scalingfactor);}; + },decorate + }] (2pt,-8.7pt) to[out=90,in=290] (290:3.6pt) -- (300:3.4pt) -- ++(102:0.6pt); + \draw[details] (A) circle (0.2pt); + \draw[details] (B) circle (0.2pt); + \draw[details] (C) circle (0.2pt); + \draw[details] (D) circle (0.2pt); + \draw[details] (E) circle (0.2pt); + \end{scope} +} + +\newcommand{\tikzpeople@guard@paintcollar}{ + \draw[collar] (225:3pt) ++(-0.06pt,-0.5pt) arc (225:320:3.1pt and 2.5pt) -- ++(-0.06pt,0.6pt) arc (320:225:3pt and 2.5pt) -- cycle; + \draw[lining] (225:3pt) ++(-0.06pt,-0.5pt) arc (225:320:3.1pt and 2.5pt); +} + +\newcommand{\tikzpeople@guard@painthat}{ + \begin{scope} + \pgftransformrotate{10} + \draw[hat] (215:3pt) arc (200:0:2.75pt and 2.4pt) .. controls (3.5pt,0pt) .. + (3.2pt,4pt) .. controls (3.2pt,8pt) and (-3.2pt,8pt) .. (-3.2pt,4pt) .. + controls (-3.5pt,0pt) and (-3.5pt,-1pt) .. (215:3pt); + \begin{scope} + \clip (0pt,0pt) circle (3pt); + \draw[color=\tikzpeople@details, line width=0.2*\scalingfactor,cap=round, dash pattern=on 0.4*\scalingfactor off 0.23*\scalingfactor] + (205:2.8pt) to[out=-40,in=230] (-30:3pt); + \end{scope} + \end{scope} +} + +\newcommand{\tikzpeople@guard@definecolors}{ + \definecolor{shirt}{rgb}{0.62,0.1,0} + \definecolor{hat}{rgb}{0,0,0} + \definecolor{skin}{rgb}{0.84,0.58,0.24} + \definecolor{collar}{rgb}{0.29,0.29,0.29} + \definecolor{details}{rgb}{1,0.82,0} + \definecolor{lining}{rgb}{0.9,0.9,0.9} +} +\newcommand{\tikzpeople@guard@definestyles}{ + \tikzstyle{shirt}=[color=\tikzpeople@shirt!80,top color=\tikzpeople@shirt!40, bottom color=\tikzpeople@shirt!80,shading angle=45]; + \tikzstyle{collar}=[color=\tikzpeople@collar!80,top color=\tikzpeople@collar!40, bottom color=\tikzpeople@collar!80,shading angle=45]; + \tikzstyle{hat}=[color=\tikzpeople@hat!80,top color=\tikzpeople@hat!40, bottom color=\tikzpeople@hat!80,shading angle=45]; + \tikzstyle{skin}=[color=\tikzpeople@skin!80,top color=\tikzpeople@skin!40, bottom color=\tikzpeople@skin!80,shading angle=45]; + \tikzstyle{details}=[color=\tikzpeople@details!80, top color=\tikzpeople@details!40, bottom color=\tikzpeople@details!80, shading angle=45]; + \tikzstyle{lining}=[color=\tikzpeople@lining]; +} + +\newcommand{\tikzpeople@guard@colors}{ + shirt/200/{-.75/-1}, hat/160/{-.75/1.3}, skin/20/{.5/.7}, collar/0/{.2/.1}, + details/180/{.49/-.32,-.5/.35}, lining/340/{.44/-.8}% +} |