| 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 |
\tikzpeople@addcolorkey{beard} |
| 18 |
|
| 19 |
\newcommand{\tikzpeople@santa@paint}{ |
| 20 |
\tikzpeople@person@paintshirt |
| 21 |
\tikzpeople@santa@paintbuttons |
| 22 |
\tikzpeople@person@painthead |
| 23 |
\tikzpeople@santa@paintbeard |
| 24 |
\if@tikzpeople@female |
| 25 |
\tikzpeople@person@painthair |
| 26 |
\fi |
| 27 |
\tikzpeople@santa@painthat |
| 28 |
} |
| 29 |
|
| 30 |
\newcommand{\tikzpeople@santa@definecolors}{ |
| 31 |
\definecolor{shirt}{rgb}{0.98,0.01,0.01} |
| 32 |
\definecolor{hat}{rgb}{0.98,0.01,0.01} |
| 33 |
\definecolor{details}{RGB}{232,232,232} |
| 34 |
\definecolor{beard}{RGB}{232,232,232} |
| 35 |
} |
| 36 |
|
| 37 |
\newcommand{\tikzpeople@santa@definestyles}{ |
| 38 |
\if@tikzpeople@saturated |
| 39 |
\tikzset{ |
| 40 |
details/.style={color=\tikzpeople@details,top color=\tikzpeople@details!60, bottom color=\tikzpeople@details,shading angle=45}, |
| 41 |
beard/.style ={color=\tikzpeople@beard, top color=\tikzpeople@beard!60, bottom color=\tikzpeople@beard,shading angle=45} |
| 42 |
} |
| 43 |
\else |
| 44 |
\tikzset{ |
| 45 |
details/.style={color=\tikzpeople@details!80,top color=\tikzpeople@details!30, bottom color=\tikzpeople@details!90,shading angle=45}, |
| 46 |
beard/.style ={color=\tikzpeople@beard!80, top color=\tikzpeople@beard!30, bottom color=\tikzpeople@beard!90,shading angle=45} |
| 47 |
} |
| 48 |
\fi |
| 49 |
\tikzset{hair/.style=beard}; |
| 50 |
} |
| 51 |
|
| 52 |
\newcommand{\tikzpeople@santa@painthat}{ |
| 53 |
\draw[hat] |
| 54 |
( 0pt,4.65pt) .. controls (-3pt,4.65pt) and (-5pt,2pt) .. (-5pt,0.40pt) .. |
| 55 |
controls (-5pt,1.00pt) and (-3pt,2pt) .. (0pt,2pt); |
| 56 |
\draw[hat] (-3.1pt,0.5pt) arc (170:10:3.2pt and 5pt); |
| 57 |
\if@tikzpeople@mirrored |
| 58 |
\draw[details, decorate, decoration={bumps,amplitude=-.1*\scalingfactor,segment length=.7*\scalingfactor}] |
| 59 |
(-3.1pt,0.4pt) to[in=180,out=180] (-3.0pt,1.6pt) .. controls (-2pt,1.2pt) |
| 60 |
and ( 2pt,1.2pt) ..( 3.0pt,1.6pt) to[out=0,in=0] ( 3.1pt,0.4pt) .. |
| 61 |
controls ( 2pt,0.0pt) and (-2pt,0.0pt) .. (-3.1pt,0.4pt); |
| 62 |
\draw[details, decorate, decoration={bumps,amplitude=.1*\scalingfactor,segment length=.7*\scalingfactor}] |
| 63 |
(-5pt,0.4pt) circle (0.75pt); |
| 64 |
\else |
| 65 |
\draw[details, decorate, decoration={bumps,amplitude=.1*\scalingfactor,segment length=.7*\scalingfactor}] |
| 66 |
(-3.1pt,0.4pt) to[in=180,out=180] (-3.0pt,1.6pt) .. controls (-2pt,1.2pt) |
| 67 |
and ( 2pt,1.2pt) ..( 3.0pt,1.6pt) to[out=0,in=0] ( 3.1pt,0.4pt) .. |
| 68 |
controls ( 2pt,0.0pt) and (-2pt,0.0pt) .. (-3.1pt,0.4pt); |
| 69 |
\draw[details, decorate, decoration={bumps,amplitude=-.1*\scalingfactor,segment length=.7*\scalingfactor}] |
| 70 |
(-5pt,0.4pt) circle (0.75pt); |
| 71 |
\fi |
| 72 |
} |
| 73 |
|
| 74 |
\newcommand{\tikzpeople@santa@paintbeard}{ |
| 75 |
\if@tikzpeople@female |
| 76 |
\else |
| 77 |
\if@tikzpeople@mirrored |
| 78 |
\draw[beard, decorate, decoration={bumps,amplitude=-.1*\scalingfactor,segment length=.7*\scalingfactor}] |
| 79 |
(-3.1pt,1pt) arc (180:360:3.1pt and 3pt) arc (360:180:3.1pt and 5pt); |
| 80 |
\else |
| 81 |
\draw[beard, decorate, decoration={bumps,amplitude=.1*\scalingfactor,segment length=.7*\scalingfactor}] |
| 82 |
(-3.1pt,1pt) arc (180:360:3.1pt and 3pt) arc (360:180:3.1pt and 5pt); |
| 83 |
\fi |
| 84 |
\fi |
| 85 |
} |
| 86 |
|
| 87 |
\newcommand{\tikzpeople@santa@paintbuttons}{ |
| 88 |
\if@tikzpeople@mirrored |
| 89 |
\draw[details, decorate, decoration={bumps,amplitude=.1*\scalingfactor,segment length=.7*\scalingfactor}] |
| 90 |
(0.75pt,-5.0pt) circle (.65pt); |
| 91 |
\draw[details, decorate, decoration={bumps,amplitude=.1*\scalingfactor,segment length=.7*\scalingfactor}] |
| 92 |
(1.00pt,-7.2pt) circle (.65pt); |
| 93 |
\else |
| 94 |
\draw[details, decorate, decoration={bumps,amplitude=-.1*\scalingfactor,segment length=.7*\scalingfactor}] |
| 95 |
(0.75pt,-5.0pt) circle (.65pt); |
| 96 |
\draw[details, decorate, decoration={bumps,amplitude=-.1*\scalingfactor,segment length=.7*\scalingfactor}] |
| 97 |
(1.00pt,-7.2pt) circle (.65pt); |
| 98 |
\fi |
| 99 |
} |
| 100 |
|
| 101 |
\newcommand{\tikzpeople@santa@colors}{ |
| 102 |
shirt/190/{-1/-1}, hat/20/{.5/1.6}, skin/0/{.4/.75}, beard/340/{.25/.1}, |
| 103 |
details/170/{.1/-.5,-1.5/1,-.5/1.1}% |
| 104 |
} |