summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.builder.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.builder.sty')
-rwxr-xr-xMaster/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.builder.sty93
1 files changed, 93 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.builder.sty b/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.builder.sty
new file mode 100755
index 00000000000..eb3512e28cd
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.builder.sty
@@ -0,0 +1,93 @@
+%% 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{hat}
+\tikzpeople@addcolorkey{trousers}
+
+\newcommand{\tikzpeople@builder@paint}{
+ \tikzpeople@person@paintshirt
+ \tikzpeople@builder@painttrousers
+ \tikzpeople@person@paintrighthorn
+ \tikzpeople@person@painthead
+ \tikzpeople@person@painthairstyletwo
+ \tikzpeople@builder@painthat
+ \tikzpeople@person@paintlefthorn
+ \tikzpeople@person@paintgoatee
+ \tikzpeople@person@painthalo
+}
+
+\newcommand{\tikzpeople@builder@painttrousers}{
+ \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[skin] (200:3.5pt) arc (200:330:4pt);
+ \draw[trousers]
+ (225:6pt) .. controls +(310:2pt) and +(250:3pt) ..
+ (320:6pt) -- ++(2pt,-6pt) -- ++(-12pt,0) -- cycle;
+ \draw[trousers]
+ (225:3pt) to[out=320,in=100] ++(300:5.5pt) -- ++(-1pt,-1pt) --
+ ++(-.9pt,.4pt) to[out=100,in=320] ++(120:5.5pt) -- cycle;
+ \end{scope}
+ \draw[trousers]
+ (280:2pt) to[out=320,in=100] ++(295:5pt) -- ++(1pt,-.4pt) --
+ ++(.6pt,1pt) to[out=100,in=320] ++(118:5.5pt) -- cycle;
+}
+
+\newcommand{\tikzpeople@builder@painthat}{
+ \draw[hat] (160:3.5pt) to[out=320,in=170] (0,0) -- ++(1pt,-.5pt) arc(270:310:5pt) -- ++(-.9pt,.5pt) .. controls +(95:3pt) and +(80:4pt) .. (160:3.5pt);
+ \draw[color=\tikzpeople@hat] (0,0) arc(270:305:6pt);
+ \draw[color=\tikzpeople@hat] (1.2pt,0.2pt) arc (0:70:2.8pt) -- ++(160:1.2pt);
+ \draw[color=\tikzpeople@hat] (2.2pt,0.5pt) arc (0:70:2.8pt) -- ++(159:1.5pt);
+ \draw[color=\tikzpeople@hat] (3pt,.9pt) arc (0:70:2.8pt) -- ++(160:.5pt);
+}
+
+\newcommand{\tikzpeople@builder@definecolors}{
+ \definecolor{shirt}{rgb}{1,1,1}
+ \definecolor{hat}{RGB}{238,175,0}
+ \definecolor{trousers}{RGB}{33,81,171}
+ \definecolor{skin}{rgb}{0.84,0.58,0.24}
+ \definecolor{hair}{rgb}{0,0,0}
+}
+\newcommand{\tikzpeople@builder@definestyles}{
+ \tikzstyle{shirt}=[color=\tikzpeople@shirt!60!black!20,top color=\tikzpeople@shirt!40, bottom color=\tikzpeople@shirt!60!black!30,shading angle=45];
+ \tikzstyle{trousers}=[color=\tikzpeople@trousers!100,top color=\tikzpeople@trousers!60, bottom color=\tikzpeople@trousers!80,shading angle=45];
+ \tikzstyle{hat}=[color=\tikzpeople@hat!80,inner color=\tikzpeople@hat!40, outer 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{hair}=[color=\tikzpeople@hair!80,top color=\tikzpeople@hair!40, bottom color=\tikzpeople@hair!80,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@builder@colors}{
+ trousers/200/{-.8/-.95}, hat/160/{-.35/1.4}, skin/20/{.5/.6}, hair/180/{-.7/.8}, shirt/340/{.3/-.3}%
+}