Debian Codegraph @

texmf-dist/tex/latex/tikzpeople/tikzpeople.shape.bride.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{pearls}
17 \tikzpeople@addcolorkey{veil}
18
19 \newcommand{\tikzpeople@bride@paint}{
20 \tikzpeople@person@paintshirt
21 \tikzpeople@bride@paintshirtdetails
22 \tikzpeople@person@paintrighthorn
23 \tikzpeople@bride@paintveilright
24 \tikzpeople@person@painthead
25 \tikzpeople@person@paintfemalehairstylethree
26 \tikzpeople@bride@paintveilleft
27 \tikzpeople@person@paintgoatee
28 \tikzpeople@person@paintlefthorn
29 \tikzpeople@person@painthalo
30 }
31
32 \newcommand{\tikzpeople@bride@paintshirtdetails}{
33 \begin{scope}
34 \clip
35 (-4.0pt,-8.0pt) .. controls (-2pt,-10pt) and ( 3pt,-9pt) ..
36 ( 5.0pt,-7.0pt) .. controls ( 5pt, 0pt) and (-5pt, 0pt) ..
37 (-4.0pt,-8.0pt);
38 \draw[skin,color=\tikzpeople@shirt!80]
39 (240:3pt) .. controls +(315:4pt) and +(270:4pt) .. (316:3.1pt) -- cycle;
40 \path[postaction={decorate},decoration={
41 markings,
42 mark=between positions 0.04 and 1 step 0.09 with {\pgftransformscale{\scalingfactor}\fill[pearls] (0pt,0pt) circle (.2pt);},
43 mark=at position 0.58 with {\pgftransformscale{\scalingfactor}\fill[pearls] (216:.5pt) circle (.2pt) ++(288:.5pt) circle (.2pt) ++(0:.5pt) circle (.2pt) ++(72:.5pt) circle (.2pt);}}]
44 (240:3.4pt) .. controls +(315:4pt) and +(270:4pt) .. (316:3.5pt);
45 \end{scope}
46 }
47
48 \newcommand{\tikzpeople@bride@paintveilright}{
49 \begin{scope}
50 \pgftransformshift{\pgfpointpolar{20}{3pt}}
51 \pgftransformrotate{25}
52 \fill[veil] (0,0) -- ++(.5pt,-2.5pt) arc (80:140:.7pt) arc (60:120:.7pt) arc (40:100:.7pt) -- ++(.5pt,2.5pt) --cycle;
53 \pgftransformshift{\pgfpoint{-.5pt}{0pt}}
54 \pgftransformrotate{-17}
55 \fill[veil] (0,0) -- ++(.5pt,-2.5pt) arc (80:140:.7pt) arc (60:120:.7pt) arc (40:100:.7pt) -- ++(.5pt,2.5pt) --cycle;
56 \end{scope}
57 }
58
59 \newcommand{\tikzpeople@bride@paintveilleft}{
60 \begin{scope}
61 \fill[veil]
62 (-1.3pt,.6pt) -- ++(.5pt,-2.5pt) arc (80:140:.7pt) arc (60:120:.7pt) arc
63 (40:100:.7pt) -- ++(.5pt,2.5pt) --cycle;
64 \pgftransformshift{\pgfpoint{-.5pt}{-.4pt}}
65 \pgftransformrotate{-17}
66 \fill[veil]
67 (-1.3pt,.6pt) -- ++(.5pt,-2.5pt) arc (80:140:.7pt) arc (60:120:.7pt) arc
68 (40:100:.7pt) -- ++(.5pt,2.5pt) --cycle;
69 \pgftransformshift{\pgfpoint{-.5pt}{-.4pt}}
70 \pgftransformrotate{-17}
71 \fill[veil]
72 (-1.3pt,.6pt) -- ++(.5pt,-2.5pt) arc (80:140:.7pt) arc (60:120:.7pt) arc
73 (40:100:.7pt) -- ++(.5pt,2.5pt) --cycle;
74 \pgftransformshift{\pgfpoint{-.5pt}{-.4pt}}
75 \pgftransformrotate{-17}
76 \fill[veil]
77 (-1.3pt,.6pt) -- ++(.5pt,-2.5pt) arc (80:140:.7pt) arc (60:120:.7pt) arc
78 (40:100:.7pt) -- ++(.5pt,2.5pt) --cycle;
79 \pgftransformshift{\pgfpoint{-.5pt}{-.4pt}}
80 \pgftransformrotate{-17}
81 \fill[veil]
82 (-1.3pt,.6pt) -- ++(.5pt,-2.5pt) arc (80:140:.7pt) arc (60:120:.7pt) arc
83 (40:100:.7pt) -- ++(.5pt,2.5pt) --cycle;
84 \end{scope}
85 \path[postaction={decorate},decoration={markings,
86 mark=between positions 0.1 and 1 step 0.27 with {\pgftransformscale{\scalingfactor}
87 \fill[pearls]
88 (0,.3pt) circle (.2pt) ++(216:.5pt) circle (.2pt) ++(288:.5pt) circle
89 (.2pt) ++(0:.5pt) circle (.2pt) ++(72:.5pt) circle (.2pt);
90 }}]
91 (150:3.3pt) to [out=330,in=210] (35:3pt);
92 }
93
94 \newcommand{\tikzpeople@bride@definecolors}{
95 \definecolor{shirt}{RGB}{236,240,255}
96 \definecolor{pearls}{rgb}{.96,.96,1}
97 \definecolor{undershirt}{rgb}{.8,.8,.8}
98 \definecolor{veil}{RGB}{179,196,228}
99 }
100 \newcommand{\tikzpeople@bride@definestyles}{
101 \if@tikzpeople@saturated
102 \tikzset{
103 veil/.style ={color=\tikzpeople@veil!80!white,opacity=0.3},
104 pearls/.style={top color=\tikzpeople@pearls!70,bottom color=\tikzpeople@pearls,shading angle=-45}
105 }
106 \else
107 \tikzset{
108 veil/.style ={color=\tikzpeople@veil!50!white,opacity=0.3},
109 pearls/.style={top color=\tikzpeople@pearls!40,bottom color=\tikzpeople@pearls!80,shading angle=-45}
110 }
111 \fi
112 }
113
114 \newcommand{\tikzpeople@bride@colors}{
115 shirt/200/{-1/-.75}, veil/170/{-1.2/.8}, hair/150/{-.4/1.6}, skin/30/{.6/.8},
116 pearls/340/{0/.97,.47/-.46}%
117 }