route between multiple gps points into 1 single route
===

I'm trying to make route between multiple GPS points.
I know that Google waypoints provide this but I need to change color of every route between 2 GPS points.

For example: I have 10 GPS points, so there will be 9 routes. 
I will append those 9 routes and every route will have different color.

I tried to find examples but no luck.

By the way im using google maps v3 with javascript/html 5 