My goal is to draw a line in different colors and not start a new line, so this produces a line and is working:
\documentclass[tikz=true,border=0pt]{standalone}
\begin{document}%
\begin{tikzpicture}[x=1mm, y=1mm]%
\draw [line width=5mm, color=green] (0,0) -- +(5,0) {};
\draw [line width=5mm, color=red] (5,0) -- +(5,0) {};
\draw [line width=5mm, color=green] (10,0) -- +(5,0) {};
\draw [line width=5mm, color=red] (15,0) -- +(5,0) {};
\end{tikzpicture}%
\end{document}
It would be nice not to start a new line...like this:
...
\draw [line width=5mm, color=green] (0,0) -- +(5,0) -- [color=red] - +(5,0) -- [color=blue] - +(5,0) {};
...
Cannot find an approach. It is just to ease things a bit.