3

I'm working with MikTex2.9 and I couldn't get rid of this warning message:

Package pgf Warning: Your graphic driver pgfsys-dvips.def does not support fadings. This warning is given only once on input line 31.

By trying this example:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shadows}
\begin{document}
\tikzstyle{ball} = [circle,shading=ball, ball color=red!80!white,  drop shadow=black, minimum size=1cm]
\begin{tikzpicture}
\node [style=ball] {blah blah blah};
\end{tikzpicture}
\end{document}

I got a .pdf slightly different from the .dvi file (the shadow is a little lighter) and I was wondering if this problem could be linked with the warning or if it's only a problem of the reader (as reported in: Tikz: Strange color change. ).

Thanks in advance for any suggestions.

1 Answers1

4

By default the drop shadow is slightly transparent, which often results in unpredictable behavior when rendering via dvi/postscript.

The default settings for the shadow are opacity=.5, fill=black!50, i.e. medium gray and half transparent.

To turn off the transparency use something like drop shadow={black,opacity=1}.

ball with black shadow

Caramdir
  • 89,023
  • 26
  • 255
  • 291