diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.pilot.sty')
-rwxr-xr-x | Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.pilot.sty | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.pilot.sty b/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.pilot.sty new file mode 100755 index 00000000000..d46af1fec55 --- /dev/null +++ b/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.pilot.sty @@ -0,0 +1,116 @@ +%% 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{undershirt} +\tikzpeople@addcolorkey{hat} +\tikzpeople@addcolorkey{visor} +\tikzpeople@addcolorkey{straps} + +\newcommand{\tikzpeople@pilot@paint}{ + \tikzpeople@person@paintshirt + \tikzpeople@pilot@paintshirtdetails + \tikzpeople@person@paintrighthorn + \tikzpeople@person@painthead + \tikzpeople@pilot@painthat + \tikzpeople@person@paintlefthorn + \tikzpeople@pilot@paintvisor + \tikzpeople@person@paintgoatee + \tikzpeople@person@painthalo +} + +\newcommand{\tikzpeople@pilot@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); + \draw[details,thick] + (220:3pt)++(4pt,-3.5pt) .. controls +(290:1pt) and +(90:1pt) .. + ++(280:4pt); + \draw[straps,shading angle=-45] + (278:7pt) -- ++(16:3pt) -- ++(0,-0.8pt) -- ++(197:3pt) -- cycle; + \draw[straps] + (230:3pt) .. controls +(2pt,-3pt) and +(0,2.5pt) .. ++(2.25pt,-7pt) -- + ++(1pt,0) .. controls +(0,2.5pt) and +(2pt,-3pt) .. +(-2.25pt,7pt) --cycle; + \draw[straps] + (300:2pt) .. controls +(2pt,-3pt) and +(0,2.5pt) .. ++(2.25pt,-7pt) -- + ++(1pt,0) .. controls +(0,2.5pt) and +(2pt,-3pt) .. +(-2.25pt,7pt) --cycle; + \end{scope} + \draw[shirt,shading angle=-45] + (220:3pt) .. controls +(-0.4pt,-1.5pt) .. ++(0.5pt,-3pt) .. controls + +(1pt,0.5pt) .. ++(3.5pt,-0.5pt) .. controls +(1pt,1.5pt) .. ++(2.3pt,2.2pt) + .. controls +(135:1.5pt) .. (320:3pt); + \draw[details,thick] + (220:3pt)++(0.5pt,-3pt) .. controls +(1pt,0.5pt) .. ++(3.5pt,-0.5pt) .. + controls +(1pt,1.5pt) .. ++(2.3pt,2.2pt); + \draw[undershirt] + (225:3pt) -- ++(3.7pt,-2.9pt) --(311:3pt) -- cycle; +} + +\newcommand{\tikzpeople@pilot@paintvisor}{ + \pgfdeclareradialshading{visor}{\pgfqpoint{-15pt}{10pt}}{% + color(0pt)=(\tikzpeople@visor!20); + color(40pt)=(\tikzpeople@visor!80)} + \draw[visor,rounded corners=.4pt*\scalingfactor] (155:2.5pt) to [out=40,in=170] (45:3.2pt) to [out=310,in=90] (2:3.2pt) -- (348:2pt) -- (40:1.3pt) -- (300:.5pt) -- (200:1.5pt) -- cycle; +} + +\newcommand{\tikzpeople@pilot@painthat}{ + \draw[hat] (5:3pt) arc (5:255:3pt) to [out=120,in=250] ++(-0.1pt,2.7pt) to [out=350,in=210] (5:3pt); +} + +\newcommand{\tikzpeople@pilot@definecolors}{ + \definecolor{shirt}{rgb}{.51,0.18,0.02} + \definecolor{hat}{RGB}{232,232,232} + \definecolor{visor}{RGB}{122,150,165} + \definecolor{undershirt}{RGB}{99,97,96} + \definecolor{skin}{rgb}{0.84,0.58,0.24} + \definecolor{hair}{rgb}{0.45,0.24,0} + \definecolor{straps}{rgb}{0,0,0} + \definecolor{details}{rgb}{0.3,0.3,0.3} +} + +\newcommand{\tikzpeople@pilot@definestyles}{ + \tikzstyle{shirt}=[color=\tikzpeople@shirt!80,top color=\tikzpeople@shirt!40, bottom color=\tikzpeople@shirt!80,shading angle=45]; + \tikzstyle{visor}=[shading=visor,color=\tikzpeople@visor!80]; + \tikzstyle{hat}=[color=\tikzpeople@hat!80,top color=\tikzpeople@hat!30, bottom color=\tikzpeople@hat!90,shading angle=45]; + \tikzstyle{skin}=[color=\tikzpeople@skin!80,top color=\tikzpeople@skin!40, bottom color=\tikzpeople@skin!80,shading angle=45]; + \tikzstyle{undershirt}=[color=\tikzpeople@undershirt!80,top color=\tikzpeople@undershirt!40, bottom color=\tikzpeople@undershirt!80,shading angle=45]; + \tikzstyle{hair}=[color=\tikzpeople@hair!80,top color=\tikzpeople@hair!40, bottom color=\tikzpeople@hair!80,shading angle=45]; + \tikzstyle{details}=[color=\tikzpeople@details!80]; + \tikzstyle{straps}=[color=\tikzpeople@straps!60,top color=\tikzpeople@straps!5, bottom color=\tikzpeople@straps!20,shading angle=45]; + \tikzstyle{goatee}=[color=\tikzpeople@hair!80,top color=\tikzpeople@hair!40, bottom color=\tikzpeople@hair!80,shading angle=45]; + \tikzstyle{horns}=[color=red!80,top color=red!40, bottom color=red!80,shading angle=45]; + \tikzstyle{halo}=[color=yellow!80,top color=yellow!40, bottom color=yellow!80,shading angle=45]; +} + +\newcommand{\tikzpeople@pilot@colors}{ + shirt/200/{-1/-.95}, visor/30/{.7/1.1}, hat/160/{-.75/.9}, skin/10/{.5/.6}, + undershirt/180/{.15/-.1}, straps/350/{.8/-.5}, decoration/330/{.42/-.7}% +} |