4

Is there a style with which I can disable a blur shadow that was already enabled? Disabling the draw and changing the fill can easily be down with appending the options:

draw=none, fill=yellow

but didn't see an wasy way to disable an exsiting blur shadow.

enter image description here

Note:

Code:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shadows.blur}

\newcommand*{\MyPicture}[1][]{% %% #1 = draw options. \begin{tikzpicture} \node [draw=red, thick,fill=magenta!25, blur shadow, #1] {Text}; \end{tikzpicture}% }%

\begin{document}

\MyPicture \quad \MyPicture[draw=none, fill=yellow, blur shadow={}]% <-- How to disable shadow here

\end{document}

Peter Grill
  • 223,288

1 Answers1

4

You can change shadow opacity parameter:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shadows.blur}

\newcommand*{\MyPicture}[1][]{%
    %% #1 = draw options.
    \begin{tikzpicture}
        \node [draw=red, thick,fill=magenta!25,  blur shadow, #1] {Text};
    \end{tikzpicture}%
}%

\begin{document}

\MyPicture
\quad
\MyPicture[draw=none, fill=yellow, blur shadow={shadow opacity=0}]% <-- How to disable shadow here

\end{document}

enter image description here

Ignasi
  • 136,588