[Tex/LaTex] How to change node arrow color in tikz

tikz-arrows

So I have tried fill=red and color=red , but it's not doing the job. Fill color my node text and color color my all texts and node arrow. I need only node arrow to be colored, maybe any suggestions?

My code of node:

(B) edge[bend left] node[sloped, anchor=center,text=green, above] {\tiny OK} (E)

Thanks in advance.

Best Answer

Use draw=green as path option. To color node text, use text=<color>.

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}

\begin{tikzpicture}
\node(B){};
\node[right=of B](E){};
\path(B) edge[draw=green,bend left] node[sloped, anchor=center,above] {\tiny OK} (E);
\end{tikzpicture}

\end{document}

enter image description here

Related Question