diff options
Diffstat (limited to 'graphics/pgf/base/doc/text-en/pgfmanual-en-library-shadings.tex')
-rw-r--r-- | graphics/pgf/base/doc/text-en/pgfmanual-en-library-shadings.tex | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/graphics/pgf/base/doc/text-en/pgfmanual-en-library-shadings.tex b/graphics/pgf/base/doc/text-en/pgfmanual-en-library-shadings.tex index 5666c1a07d..3f73bd926a 100644 --- a/graphics/pgf/base/doc/text-en/pgfmanual-en-library-shadings.tex +++ b/graphics/pgf/base/doc/text-en/pgfmanual-en-library-shadings.tex @@ -42,7 +42,7 @@ this library is not used. \item The rotation angle of the shading is set to 0. \end{enumerate} % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usepgflibrary{shadings}}] \tikz \draw[top color=red] (0,0) rectangle (2,1); \end{codeexample} \end{key} @@ -60,7 +60,7 @@ this library is not used. middle color, this option should be given \emph{last} if all of these options need to be given: % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usepgflibrary{shadings}}] \tikz \draw[top color=white,bottom color=black,middle color=red] (0,0) rectangle (2,1); \end{codeexample} @@ -89,7 +89,7 @@ this library is not used. black. Because of this, it also makes sense to say |ball color=white| or |ball color=black| % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usepgflibrary{shadings}}] \begin{tikzpicture} \shade[ball color=white] (0,0) circle (2ex); \shade[ball color=red] (1,0) circle (2ex); @@ -107,7 +107,7 @@ this library is not used. also defines four options, called the same way, that can be used to set these colors and select the shading implicitly. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usepgflibrary{shadings}}] \tikz \shade[upper left=red,upper right=green, lower left=blue,lower right=yellow] @@ -137,13 +137,13 @@ this library is not used. \label{shading-color-wheel}% This shading fills the path with a color wheel. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usepgflibrary{shadings}}] \tikz \shade[shading=color wheel] (0,0) circle (1.5); \end{codeexample} % To produce a color ring, cut out a circle from the color wheel: % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usepgflibrary{shadings}}] \tikz \shade[shading=color wheel] [even odd rule] (0,0) circle (1.5) (0,0) circle (1); @@ -155,7 +155,7 @@ this library is not used. This shading looks like a color wheel, but the brightness drops to zero in the center. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usepgflibrary{shadings}}] \tikz \shade[shading=color wheel black center] (0,0) circle (1.5); \end{codeexample} % @@ -165,7 +165,7 @@ this library is not used. This shading looks like a color wheel, but the saturation drops to zero in the center. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usepgflibrary{shadings}}] \tikz \shade[shading=color wheel white center] (0,0) circle (1.5); \end{codeexample} % @@ -179,7 +179,7 @@ this library is not used. arbitrarily (give it a try, if you have a fast computer). % \pgfutil@ifluatex -\begin{codeexample}[] +\begin{codeexample}[preamble={\usepgflibrary{shadings}}] \tikz \shade[shading=Mandelbrot set] (0,0) rectangle (2,2); \end{codeexample} \else @@ -205,7 +205,7 @@ this library is not used. When this option is used, the |shade| and |shading=radial| options are set. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usepgflibrary{shadings}}] \tikz \draw[inner color=red] (0,0) rectangle (2,1); \end{codeexample} \end{key} @@ -214,7 +214,7 @@ this library is not used. This option sets the color used at the border and outside of a |radial| shading. % -\begin{codeexample}[] +\begin{codeexample}[preamble={\usepgflibrary{shadings}}] \tikz \draw[outer color=red,inner color=white] (0,0) rectangle (2,1); \end{codeexample} |