I am trying to draw a shaded triangle with tikz, using the following code:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\fill[top color=green!40,middle color=white,shading angle=45] (-2.5,-3) -- (12.5,3) -- (-2.5,3) -- cycle;
\end{tikzpicture}
\end{document}
I think it is hard to see in the image posted below, but just along the diagonal is a very thin line. Is there any way to get rid of this line?
This is with Tikz/PGF version 2.10.



\listfilescommand into the preamble of your document. This will write all invoked packages and classes as well as their version into the log file. – Benedikt Bauer Nov 7 '12 at 13:46\draw[top color=green!40,middle color=white,shading angle=45,draw=none] (-2.5,-3) -- (12.5,3) -- (-2.5,3) -- cycle;. Does it fix the problem? – Claudio Fiandrino Nov 7 '12 at 13:49