diff options
Diffstat (limited to 'graphics/pgf/base/doc/text-en/pgfmanual-en-library-shadows.tex')
-rw-r--r-- | graphics/pgf/base/doc/text-en/pgfmanual-en-library-shadows.tex | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/graphics/pgf/base/doc/text-en/pgfmanual-en-library-shadows.tex b/graphics/pgf/base/doc/text-en/pgfmanual-en-library-shadows.tex index 93b6feaced..9892064652 100644 --- a/graphics/pgf/base/doc/text-en/pgfmanual-en-library-shadows.tex +++ b/graphics/pgf/base/doc/text-en/pgfmanual-en-library-shadows.tex @@ -11,10 +11,10 @@ \section{Shadows Library} \label{section-libs-shadows} -\begin{pgflibrary}{shadows} +\begin{tikzlibrary}{shadows} This library defines styles that help adding a (partly) transparent shadow to a path or node. -\end{pgflibrary} +\end{tikzlibrary} \subsection{Overview} @@ -63,7 +63,7 @@ You will not need to use this option directly under normal circumstances. shadows are not taken into account when the picture's bounding box is computed. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{shadows}}] \tikz [even odd rule] \draw [general shadow={fill=red}] (0,0) circle (.5) (0.5,0) circle (.5); \end{codeexample} @@ -71,7 +71,7 @@ You will not need to use this option directly under normal circumstances. \begin{key}{/tikz/shadow scale=\meta{factor} (initially 1)} Shadows are scaled by \meta{factor}. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{shadows}}] \tikz [even odd rule] \draw [general shadow={fill=red,shadow scale=1.25}] (0,0) circle (.5) (0.5,0) circle (.5); @@ -81,7 +81,7 @@ You will not need to use this option directly under normal circumstances. \begin{key}{/tikz/shadow xshift=\meta{dimension} (initially 0pt)} Shadows are shifted horizontally by \meta{dimension}. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{shadows}}] \tikz [even odd rule] \draw [general shadow={fill=red,shadow xshift=-5pt}] (0,0) circle (.5) (0.5,0) circle (.5); @@ -108,19 +108,19 @@ You will not need to use this option directly under normal circumstances. opacity=.5, fill=black!50, every shadow \end{codeexample} -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{shadows}}] \tikz [even odd rule] \filldraw [drop shadow,fill=white] (0,0) circle (.5) (0.5,0) circle (.5); \end{codeexample} -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{shadows,shapes.symbols}}] \begin{tikzpicture} \foreach \i in {1,...,4} \node[starburst,drop shadow,fill=white,draw] at (0,\i) {Burst \i}; \end{tikzpicture} \end{codeexample} -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{shadows}}] \begin{tikzpicture} \draw [help lines] (0,0) grid (3,2); \filldraw [drop shadow={opacity=1},fill=white] @@ -137,7 +137,7 @@ You will not need to use this option directly under normal circumstances. This style is executed in addition to any \meta{shadow options} for each shadow. Use this style to reconfigure the way shadows are drawn. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{shadows}}] \begin{tikzpicture}[every shadow/.style={opacity=.8,fill=blue!50!black}] \filldraw [drop shadow,fill=white] (0,0) circle (.5) (0.5,0) circle (.5); \end{tikzpicture} @@ -163,7 +163,7 @@ visual impression of having multiple copies of the path/object present. color} are also set, where the \meta{fill color} and \meta{draw color} are the fill and draw colors used for the main path. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{shadows,shapes.symbols}}] \begin{tikzpicture} \node [copy shadow,fill=blue!20,draw=blue,thick] {Hello World!}; @@ -189,7 +189,7 @@ visual impression of having multiple copies of the path/object present. This shadow works like a |copy shadow|, only the shadow is added twice, the second time with the double |xshift| and |yshift|. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{shadows,shapes.symbols}}] \begin{tikzpicture} \node [double copy shadow,fill=blue!20,draw=blue,thick] {Hello World!}; @@ -226,7 +226,7 @@ special shape. They will look strange with other shapes. every shadow, \end{codeexample} -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{shadows}}] \begin{tikzpicture} \foreach \i in {1,...,8} \node[circle,circular drop shadow,draw=blue,fill=blue!20,thick] @@ -247,7 +247,7 @@ special shape. They will look strange with other shapes. every shadow, \end{codeexample} -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{shadows}}] \begin{tikzpicture} \foreach \i in {1,...,8} \node[circle,circular glow,fill=red!20,draw=red,thick] @@ -255,7 +255,7 @@ special shape. They will look strange with other shapes. \end{tikzpicture} \end{codeexample} -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{shadows}}] \begin{tikzpicture} \foreach \i in {1,...,8} \node[circle,circular glow={fill=white},fill=red!20,draw=red,thick] @@ -263,7 +263,7 @@ special shape. They will look strange with other shapes. \end{tikzpicture} \end{codeexample} -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{shadows}}] \begin{tikzpicture} \foreach \i in {1,...,8} \node[circle,circular glow={fill=green},fill=black,text=green!50!black] @@ -274,7 +274,7 @@ special shape. They will look strange with other shapes. An especially interesting effect can be achieved by only using the glow and not filling the path: % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usetikzlibrary{shadows}}] \begin{tikzpicture} \foreach \i in {1,...,8} \node[circle,circular glow={fill=red!\i0}] |