-
Ping Pong Loop of Color Fill
Hi,
I would like to loop the fill color of a layer, so it fades from blue to gray, gray back to blue and repeats forever.
I have two ideas but they don’t seem to be working. Is there a simple way to ping pong loop “linear”? (I tried a little If statement that played a reverse version of the linear, but it introduced a color flash)
Maybe there is a better way with a Sin curve driving the transition?
Bonus if there is variable to hold at the point it is full gray and full blue.
Thank you in advance!
Paulblue = thisComp.layer("COLORS").effect("Color1")("Color")
gray = thisComp.layer("COLORS").effect("Gray")("Color")
loopTime = 1;
t = time % loopTime;
linear(t, 0, loopTime, blue, gray)