bool playing = false;
void OnTick() {
TimeLine myTimeLine;
if (not playing){
playing = true;
myTimeLine.Start()
}
}
TimelineUpdate(){
float time;
float hue;
vector color
time = myTimeLine.GetTime();
hue = time(360) + (1-time) * 0
color = HSVtoRGB(hue,1,1);
textRender.SetColor(color);
}
TimeLineFinished() {
playing = false;
}