How does segmenting a polyline into different colors work.
It says in the documentation it can be done by vertex or segment in a color array. Does that mean it is an array with a color defined for each position in the positions property?
In the polyline CZML documentation it says that it is [time, r, g, b, a]. When I try to use this to segment colors it changes the whole thing to the new color for the period of time and then switches the whole thing back.
I was using a path but paths don’t have the ability to segment their color. My code calculates when a path/polyline passes through another primitive, when the polyline is inside it needs to be a different color. This is calculated based on time since epoch.
If this done by vertex, when creating the polyline with polylinePrimitive instead of CZML, is there an unused property that I can use to store the time stamps per position so that I can reference them later when updating the color segmentation of the polyline through the vertex number?