i have some tikz code like this one :
\tikzset{
bloc/.style={
anchor=south west,
draw,
minimum height=0.7cm,
align=left,
font=\small
},
}
\begin{tikzpicture}
\node[bloc, minimum width=5.5cm,
fading transform={xshift=-3cm},
left color=green!60!black!80,
right color=red!60]
at (-9,0.5) {Initialize process};
\end{tikzpicture}
I would like to change the fading transform part to have different proportions. For example, i would like to have 80% of the node to be in green, and only 20% of the node in red. But i don't find any way to to that.
Do you have some tips to do that ?
My final goal is to make a roadmap and to indicate on it how many tasks are done or partially done.
The full code :
\documentclass{article}
\usepackage{tikz}
\begin{document}
\tikzset{
bloc/.style={
anchor=south west,
draw,
minimum height=0.7cm,
align=left,
font=\small
},
}
\begin{tikzpicture}
\node[bloc, minimum width=5.5cm,
fading transform={xshift=-3cm},
left color=green!60!black!80,
right color=red!60]
at (-9,0.5) {Initialize process};
\end{tikzpicture}
\end{document}
