Debian Codegraph @

texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.chef.sty

raw
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{details}
17
18 \newcommand{\tikzpeople@chef@paint}{
19 \tikzpeople@person@paintshirt
20 \tikzpeople@chef@paintshirtdetails
21 \tikzpeople@person@paintrighthorn
22 \tikzpeople@person@painthead
23 \tikzpeople@person@painthair
24 \tikzpeople@chef@painthat
25 \tikzpeople@person@paintgoatee
26 \tikzpeople@person@paintlefthorn
27 \tikzpeople@person@painthalo
28 }
29
30 \newcommand{\tikzpeople@chef@paintshirtdetails}{
31 \draw[details]
32 (230:3pt) .. controls (0.24pt,-5pt) and (0.29pt,-8pt) .. (0.3pt,-9pt);
33 \draw[shirt,thick,shading angle=-45]
34 (230:3pt) .. controls +(-0.4pt,-1.5pt) .. ++(0pt,-3pt) .. controls
35 +(1.5pt,0.5pt) .. ++(3pt,0.2pt) .. controls +(0.5pt,0.4pt) ..
36 ++(2pt,0.7pt) .. controls +(0pt,0.5pt) .. (312:3pt);
37 \draw[skin] (231:3pt) -- (1pt,-4.85pt) -- (311:3pt) -- cycle;
38 }
39
40 \newcommand{\tikzpeople@chef@painthat}{
41 \draw[hat]
42 (160:3pt) ++(0pt,2pt) -- (160:3pt) arc (-180:0:2.85pt and 1pt) --
43 ++(0pt,2pt);
44 \draw[hat,bottom color=\tikzpeople@hat!90!black]
45 (0pt,2.7pt) ellipse (3.2pt and 1.12pt);
46 \begin{scope}
47 \clip (0pt,2.7pt) ellipse (3.2pt and 1.12pt);
48 \draw[hat]
49 (-3.2pt,3.2pt) arc (-180:0:3.2pt and 1.12pt) -- ++(0pt,1.5pt) --
50 (-3.2pt,4.2pt) -- cycle;
51 \end{scope}
52 }
53
54 \newcommand{\tikzpeople@chef@definecolors}{
55 \definecolor{shirt}{RGB}{232,232,232}
56 \definecolor{hat}{RGB}{232,232,232}
57 \definecolor{details}{rgb}{0.3,0.3,0.3}
58 }
59 \newcommand{\tikzpeople@chef@definestyles}{
60 \if@tikzpeople@saturated
61 \tikzset{
62 details/.style={color=\tikzpeople@details}
63 }
64 \else
65 \tikzset{
66 details/.style={color=\tikzpeople@details!80}
67 }
68 \fi
69 }
70
71 \newcommand{\tikzpeople@chef@colors}{
72 shirt/340/{.75/-.75}, hair/160/{-.75/.9}, hat/30/{.5/1.3}, skin/0/{.4/.6},
73 details/200/{-.1/-1}%
74 }