Debian Codegraph @

texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.priest.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{collar}
17 \tikzpeople@addcolorkey{cross}
18
19 \newcommand{\tikzpeople@priest@paint}{
20 \tikzpeople@person@paintshirt
21 \tikzpeople@priest@paintcross
22 \tikzpeople@priest@paintcollar
23 \tikzpeople@person@paintrighthorn
24 \tikzpeople@person@painthead
25 \tikzpeople@person@painthair
26 \tikzpeople@priest@painthat
27 \tikzpeople@person@paintgoatee
28 \tikzpeople@person@paintlefthorn
29 \tikzpeople@person@painthalo
30 }
31
32 \newcommand{\tikzpeople@priest@definecolors}{
33 \definecolor{skin}{rgb}{0.84,0.58,0.24}
34 \definecolor{shirt}{rgb}{0,0,0}
35 \definecolor{collar}{RGB}{232,232,232}
36 \definecolor{cross}{rgb}{1,0.8,0.09}
37 \definecolor{hair}{rgb}{0.45,0.24,0}
38 \definecolor{hat}{rgb}{0.8,0.11,0}
39 }
40
41 \newcommand{\tikzpeople@priest@definestyles}{
42 \tikzset{
43 collar/.style ={color=\tikzpeople@collar!80,top color=\tikzpeople@collar!30, bottom color=\tikzpeople@collar!90,shading angle=45},
44 cross/.style ={color=\tikzpeople@cross, top color=\tikzpeople@cross!80, bottom color=\tikzpeople@cross,shading angle=45},
45 necklace/.style={color=\tikzpeople@cross,dash pattern=on 0.1*\scalingfactor off 0.3*\scalingfactor,line width=0.15*\scalingfactor,cap=round}
46 }
47 }
48
49 \newcommand{\tikzpeople@priest@painthat}{
50 \draw[hat] (50:3pt) arc (50:140:3pt) to [out=340,in=210] (50:3pt);
51 }
52
53 \newcommand{\tikzpeople@priest@paintcollar}{
54 \draw[collar]
55 (230:3.4pt|-2pt,0) -- (230:3.4pt) arc (230:317:3.2pt) -- +(0,0.8pt);
56 \draw[shirt]
57 (227:3.2pt) -- +(0pt,-0.4pt) arc (227:280:3.2pt) -- +(0pt, 0.4pt) arc
58 (280:227:3.2pt);
59 \draw[shirt]
60 (-40:3.2pt) -- +(0pt,-0.4pt) arc (-40:-70:3.2pt) -- +(0pt, 0.4pt) arc
61 (-70:-40:3.2pt);
62 }
63
64 \newcommand{\tikzpeople@priest@paintcross}{
65 {
66 \pgftransformrotate{10}
67 \path[cross] (0.6pt,-7.2pt) -- (0.9pt,-7.2pt) -- (0.9pt,-6.3pt) --
68 (1.4pt,-6.3pt) -- (1.4pt,-6.0pt) -- (0.9pt,-6.0pt) -- (0.9pt,-5.5pt) --
69 (0.6pt,-5.5pt) -- (0.6pt,-6.0pt) -- (0.1pt,-6.0pt) -- (0.1pt,-6.3pt) --
70 (0.6pt,-6.3pt) -- (0.6pt,-7.2pt);
71 }
72 \begin{scope}
73 \clip
74 (-4.0pt,-8.0pt) .. controls (-2pt,-10pt) and ( 3pt,-9pt) ..
75 ( 5.0pt,-7.0pt) .. controls ( 5pt, 0pt) and (-5pt, 0pt) ..
76 (-4.0pt,-8.0pt);
77 \draw[necklace] (1.5pt,-5.3pt) .. controls (1.1pt,-5.2pt) and
78 (-1.8pt,-4.0pt) .. (-2.6pt,-2.9pt);
79 \draw[necklace] ( 1.9pt,-5.3pt) .. controls ( 2.1pt,-4.9pt) and
80 (2.8pt,-3.5pt) .. (2.9pt,-2.6pt);
81 \end{scope}
82 }
83
84 \newcommand{\tikzpeople@priest@colors}{
85 shirt/200/{-1/-1}, hat/160/{-.25/1.5}, hair/180/{-.75/1}, skin/20/{.6/.7},
86 collar/0/{.15/.05}, cross/340/{.4/-.72}%
87 }