| 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 Free Documentation License. |
| 7 |
% |
| 8 |
% See the file doc/generic/pgf/licenses/LICENSE for more details. |
| 9 |
|
| 10 |
|
| 11 |
\section{Fading Library} |
| 12 |
\label{section-library-fadings} |
| 13 |
|
| 14 |
\begin{pgflibrary}{fadings} |
| 15 |
The package defines a number of fadings, see |
| 16 |
Section~\ref{section-tikz-transparency} for an introduction. The |
| 17 |
\tikzname\ version defines special \tikzname\ commands for creating |
| 18 |
fadings. These commands are explained in |
| 19 |
Section~\ref{section-tikz-transparency}. |
| 20 |
\end{pgflibrary} |
| 21 |
|
| 22 |
\newcommand\fadingindex[1]{% |
| 23 |
\index{#1@\protect\texttt{#1} fading}% |
| 24 |
\index{Fadings!#1@\protect\texttt{#1}}% |
| 25 |
\texttt{#1}& |
| 26 |
\begin{tikzpicture}[baseline=5mm-.5ex] |
| 27 |
\fill [black!20] (0,0) rectangle (1,1); |
| 28 |
\path [pattern=checkerboard,pattern color=black!30] (0,0) rectangle (1,1); |
| 29 |
|
| 30 |
\fill [path fading=#1,blue] (0,0) rectangle (1,1); |
| 31 |
\end{tikzpicture} \\[4.5mm] |
| 32 |
} |
| 33 |
|
| 34 |
\noindent |
| 35 |
\begin{tabular}{ll} |
| 36 |
\emph{Fading name} & \emph{Example (solid blue faded on checkerboard)} \\[1mm] |
| 37 |
\fadingindex{west} |
| 38 |
\fadingindex{east} |
| 39 |
\fadingindex{north} |
| 40 |
\fadingindex{south} |
| 41 |
\fadingindex{circle with fuzzy edge 10 percent} |
| 42 |
\fadingindex{circle with fuzzy edge 15 percent} |
| 43 |
\fadingindex{circle with fuzzy edge 20 percent} |
| 44 |
\fadingindex{fuzzy ring 15 percent} |
| 45 |
\end{tabular} |
| 46 |
|
| 47 |
|
| 48 |
%%% Local Variables: |
| 49 |
%%% mode: latex |
| 50 |
%%% TeX-master: "pgfmanual-pdftex-version" |
| 51 |
%%% End: |