One Curve/Object with different colors between nodes for the same line

I am drawing a curve that can be closed to be filled with a color.  This curve has several sides to it.  How do I change the color of the different line segments between nodes? I do not want to draw over the original curve with small curves/lines and then color them.  I want to change the color between different nodes of the same curve to blue, green and red.  That is, 1 curve with different colors between its nodes.