Change the color of individual segments of connected pipes in perspective

I have a pipe with multiple connected segments. I am wanting to dynamically change the colors of the segments(connections) independently. However, there is only one stroke color property for the entire pipe and all of its connections. It doesn't appear to allow me to add additional properties for each of the connections. Am I missing something here? or do I need to create a separate pipe for each segment I want to separately control and not connect them?

image