Debian Codegraph @

texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.physician.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{stethoscope}
17 \tikzpeople@addcolorkey{tube}
18
19 \newcommand{\tikzpeople@physician@paint}{
20 \tikzpeople@person@paintshirt
21 \tikzpeople@physician@paintshirtdetails
22 \tikzpeople@physician@stethoscope
23 \tikzpeople@person@paintrighthorn
24 \tikzpeople@person@painthead
25 \tikzpeople@person@painthair
26 \tikzpeople@physician@painthat
27 \tikzpeople@person@paintgoatee
28 \tikzpeople@person@paintlefthorn
29 \tikzpeople@person@painthalo
30 }
31
32 \newcommand{\tikzpeople@physician@paintshirtdetails}{
33 \begin{scope}
34 \clip (-4pt,-8pt) .. controls (-2pt,-10pt) and (3pt,-9pt) ..
35 ( 5pt,-7pt) .. controls ( 5pt, 0pt) and (-5pt,0pt) ..
36 (-4pt,-8pt);
37 \draw[skin]
38 (245:3pt) .. controls (1pt,-4.85pt) .. (1.3pt,-4.85pt) .. controls (1.7pt,-4.6pt) .. (311:3pt) -- cycle;
39 \draw[shirt,shading angle=-45] (-.1pt,-7.2pt) to[out=204,in=348] (-2.5pt,-7.2pt) -- ++(270:1.3pt) arc (180:360:1.2pt) --cycle;
40 \draw[color=\tikzpeople@shirt!90!black,thick] (-.1pt,-7.2pt) to[out=204,in=348] (-2.5pt,-7.2pt);
41 \end{scope}
42 }
43
44 \newcommand{\tikzpeople@physician@painthat}{
45 \draw[hat] (160:3pt) ++(.3pt,1.6pt) -- (160:3pt) arc (-180:0:2.85pt and 1pt) -- ++(-.3pt,1.6pt) arc (0:180:2.55pt and 1pt) arc (-180:0:2.55pt and 1pt);
46 }
47
48 \newcommand{\tikzpeople@physician@stethoscope}{
49 \draw[tube]
50 (234:2.9pt) ++(295:1.3pt) ++(323:1.8pt) to[out=318,in=135] ++(321:1.4pt)
51 to[in=225,out=315] ++(10:.5pt) to[out=55,in=260] ++(84:1.3pt) --
52 ++(350:.3pt) to[out=260,in=55] ++(264:1.7pt) to[out=235,in=90] ++(210:.3pt)
53 -- ++(270:3.2pt) .. controls +(270:1pt) and +(285:1pt) .. ++(-1.9pt,-.2pt)
54 to[out=105, in=292] (-.7pt,-7.4pt) -- ++(-.4pt,0) arc (180:18:.39pt)
55 to[out=288, in=105] ++(288:2pt) .. controls +(285:.7pt) and +(270:.7pt) ..
56 ++(7:1.2pt) -- ++(90:3pt) to[out=100,in=325] ++(140:.6pt) to[out=145,in=315]
57 ++(135:1pt);
58 \draw[stethoscope]
59 (234:2.9pt) ++(295:1.3pt) ++(321:2.2pt) .. controls +(323:.6pt) and
60 +(260:.6pt) .. ++(17:1.55pt) -- +(.15pt,0) .. controls +(260:.8pt) and
61 +(323:.8pt) .. ++(197:1.7pt);
62 \draw[stethoscope]
63 (234:2.9pt) to[out=270,in=135] ++(295:1.3pt) to[out=315,in=143]
64 ++(323:1.8pt) coordinate (tikzpeople@tmp) -- ++(233:.3pt) to[in=315,out=143]
65 ++(143:1.9pt) to[in=270,out=135] ++(110:2pt);
66 \draw[stethoscope]
67 (tikzpeople@tmp) ++(0,.06pt) coordinate (tikzpeople@tmp2) to[out=225,in=61] ++(233:.4pt) --
68 ++(323:.5pt) coordinate (tikzpeople@tmp) to[in=241,out=45] ++(53:.4pt) (tikzpeople@tmp)
69 to[in=225,out=61] ++(53:.4pt) --(tikzpeople@tmp2);
70 \draw[stethoscope]
71 (314:2.9pt) to[out=308,in=87] ++(307:.4pt) to[out=273,in=80] ++(263:1.6pt)
72 coordinate (tikzpeople@tmp) -- ++(353:.3pt) to[in=273,out=80] ++(83:1.7pt)
73 to[in=270,out=93] ++(120:.7pt);
74 \draw[stethoscope]
75 (tikzpeople@tmp) ++(-.04pt,.06pt) coordinate (tikzpeople@tmp2) to[out=358,in=162] ++(350:.4pt) --
76 ++(260:.5pt) coordinate (tikzpeople@tmp) to[in=358,out=162] ++(170:.4pt) --(tikzpeople@tmp2);
77 }
78
79 \newcommand{\tikzpeople@physician@definecolors}{
80 \definecolor{shirt}{RGB}{150,176,228}
81 \definecolor{hat}{RGB}{150,176,228}
82 \definecolor{stethoscope}{RGB}{149,153,164}
83 \definecolor{tube}{RGB}{193,75,26}
84 \definecolor{hair}{rgb}{0,0,0}
85 }
86
87 \newcommand{\tikzpeople@physician@definestyles}{
88 \if@tikzpeople@saturated
89 \tikzset{
90 tube/.style={color=\tikzpeople@tube,top color=\tikzpeople@tube!70, bottom color=\tikzpeople@tube,shading angle=45},
91 stethoscope/.style={color=\tikzpeople@stethoscope,top color=\tikzpeople@stethoscope!70, bottom color=\tikzpeople@stethoscope,shading angle=45}
92 }
93 \else
94 \tikzset{
95 tube/.style={color=\tikzpeople@tube!80,top color=\tikzpeople@tube!40, bottom color=\tikzpeople@tube!80,shading angle=45},
96 stethoscope/.style={color=\tikzpeople@stethoscope!80,top color=\tikzpeople@stethoscope!40, bottom color=\tikzpeople@stethoscope!80,shading angle=45}
97 }
98 \fi
99 }
100
101 \newcommand{\tikzpeople@physician@colors}{
102 shirt/340/{1/-.75}, hair/160/{-.75/.9}, hat/20/{.5/1.3},
103 stethoscope/180/{-.48/-.15}, tube/200/{-.25/-1.2}, skin/0/{.3/.6}%
104 }