change trajectory color between segments