Multicolor Polyline

Is it possible to color a polyline along its path?
I use the Paint node and created a polyline. I'm looking for a simple way to use different colors on the polyline preferably per control point. Is this possible?
I use the Paint node and created a polyline. I'm looking for a simple way to use different colors on the polyline preferably per control point. Is this possible?