Alternate between two literals on a timer?

Is there a way to alternate between two literals on a timer? Say I want to alternate the width of a shape between 100 and 150 every 5 seconds, or alternate saturation of an image between 0 and 100 every second to act as a flashing effect(trying to come up with a workaround for no animations in kwgt)

You can use something like this "tu" formula

$if(tu(rnd,1/60,0,1)=1,0,100)$

This are going to change between 0 and 100 every second.

Take in mind that the actualization every second in Kwgt can drain your battery.

This works, thank you. I racked my brain for hours trying to figure out how to make this work using sequence. I never thought to use random and set the count from 0 to 1

👌👍