Thank you very muck Filip, it’s working well.
Only just one final touch.
Is it possible to program the transition to occur before the marker, starting at the marker time – the transitionTime and ending at the marker time?
I tried to modify the last line like this but it didn’t work
linear(time, curMarker.time-transitionTime, curMarker.time, colorValue_1, colorValue_2);