0

How do I change the color of each edge of the shape within \node[isosceles triangle]?

What I have currently is just a regular isosceles triangle,

\begin{tikzpicture}
    \node[isosceles triangle,
        draw,
        rotate = 90,
        fill=teal!10,
        minimum size =2cm] (T60) at (0,0){};
\end{tikzpicture}

But I've had no luck with changing the edge colors. I'd also like to add vertices and change the colors of the vertices, too.

Lex_i
  • 215
  • draw=<color>. – Qrrbrbirlbel Oct 06 '22 at 15:16
  • @Qrrbrbirlbel that only works for changing the color of every edge at once. I want each edge to have a distinct color – Lex_i Oct 06 '22 at 15:22
  • Then you need to draw them separately. Q478550, Q141378 and probably a few more. With outer sep=0pt at the node, you can do \draw[red](T60.corner 1)--(T60.corner 2);\draw[green](T60.corner 2)--(T60.corner 3);\draw[blue](T60.corner 3)--(T60.corner 1);. Though, you will need think about the corners and the line cap. Maybe an arrow tip and some manual calculations can help. – Qrrbrbirlbel Oct 06 '22 at 15:35

0 Answers0