Debian Codegraph @

texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/tikzlibrarypatterns.code.tex

raw
1 % Copyright 2018 by Till Tantau
2 %
3 % This file may be distributed and/or modified
4 %
5 % 1. under the LaTeX Project Public License and/or
6 % 2. under the GNU Public License.
7 %
8 % See the file doc/generic/pgf/licenses/LICENSE for more details.
9
10 \ProvidesFileRCS{tikzlibrarypatterns.code.tex}
11
12 \usepgflibrary{patterns}%
13
14 \tikzoption{pattern color}{\edef\tikz@pattern@color{#1}}%
15 \tikzoption{pattern}[]{%
16 \edef\tikz@temp{#1}%
17 \ifx\tikz@temp\tikz@nonetext%
18 \tikz@addmode{\tikz@mode@fillfalse}%
19 \else%
20 \ifx\tikz@temp\pgfutil@empty%
21 \else%
22 \tikz@addoption{\pgfsetfillpattern{#1}{\tikz@pattern@color}}%
23 \def\tikz@pattern{#1}%
24 \fi%
25 \tikz@addmode{\tikz@mode@filltrue}%
26 \fi%
27 }%
28 \def\tikz@pattern@color{black}%
29 \def\tikz@pattern{dots}%
30
31 \endinput