If I draw a line as follows:
\documentclass[article]{standalone}
\usepackage{tikz}
\usetikzlibrary{decorations.pathmorphing,calc,shapes,arrows,snakes,shapes.geometric,patterns,fadings}
\begin{document}
\begin{tikzpicture}
\draw[very thick](0,0)--(1,0);
How can I draw the line so that the line starts as red but then fades into blue, I have tried
\documentclass[article]{standalone}
\usepackage{tikz}
\usetikzlibrary{decorations.pathmorphing,calc,shapes,arrows,snakes,shapes.geometric,patterns,fadings}
\begin{document}
\begin{tikzpicture}
\draw[very thick,top color=red,bottom color=blue](0,0)--(1,0);
but it does not seem to do anything, any advice?
\documentclass{...}and ending with\end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to help you. Help them help you: remove that one hurdle between you and a solution to your problem. – jub0bs Nov 07 '13 at 19:59\path[top color=red, bottom color=blue] (0,+-\pgflinewidth) rectangle (1,+\pgflinewidth);, i.e. for straight lines, you can mimic it. – Qrrbrbirlbel Nov 07 '13 at 20:03