8

With this code:

\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\fill[shading=radial] (0,5) circle (2);
\fill[top color=black] (5,3) rectangle (9,7);
\fill[shading=radial, ultra nearly transparent] (0,0) circle (2);
\fill[top color=black, ultra nearly transparent] (5,-2) rectangle (9,2);
\end{tikzpicture}
\end{document}

I get (pdf both with mac preview and Adobe Reader) :

transparent shading

Why does the transparent option almost(but not completely) remove the shading?

Where does the ultra thin perimeter line come from in a pure \fill (no \draw or \filldraw)?

  • 4
    You need \shade not \fill. – percusse Apr 5 '14 at 22:20
  • 1
    @percusse Answer please :) – user11232 Apr 5 '14 at 22:33
5

You need \shade not \fill.

– percusse

Result:

result

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.