I've created this image and I would like to change the black line into a three-colored line (red, white, green). Is there a simple way to obtain this?
Editing after seeing first answer
I was thinking more to something like this:
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{patterns,arrows.meta}
\begin{document}
\begin{tikzpicture}
\filldraw[, fill=orange,line width=9pt, rounded corners] (0,0) -- (1,5) -- (3,6) -- (5,5) -- (6,0) -- (10,0) -- cycle;
\filldraw[line width=9pt, rounded corners] (5,4.91) -- (6.4,-2);
\end{tikzpicture}
\end{document}
Thank you all: you are something like tikz-artist!
I've modified your code, and I like this one:
\begin{tikzpicture}
\fill[white, rounded corners] (0,0) -- (1,5) -- (3,6) -- (5,5) -- (6,0) -- cycle;
\begin{scope}[even odd rule]
\clip[rounded corners] (10,0) -- (0,0) -- (1,5) -- (3,6) -- (5,5) -- (6.4,-2) -- ([turn]0:1) -| (11,0) -- cycle;
\draw[green!80!black, line width=70pt, rounded corners] (10,0) -- (0,0) -- (1,5) -- (3,6) -- (5,5) -- (6.4,-2);
\end{scope}
\begin{scope}[even odd rule]
\clip[rounded corners] (10,0) -- (0,0) -- (1,5) -- (3,6) -- (5,5) -- (6.4,-2) -- ([turn]0:1) -| (11,0) -- cycle (-1,-3) rectangle (11,7);
\draw[red, line width=70pt, rounded corners] (10,0) -- (0,0) -- (1,5) -- (3,6) -- (5,5) -- (6.4,-2);
\end{scope}
\draw[white, line width=20pt, rounded corners] (10,0) -- (0,0) -- (1,5) -- (3,6) -- (5,5) -- (6.4,-2);
\end{tikzpicture}
Unfortunately, with this size, the edges of the image are cut off - how can I avoid this?