-
Expressions: Alternating between 2 values
Hey y’all. So I have this lightning bolt, and I need it to go from 100% opacity to 0% opacity to create flickering. What is a good expression to alternate between these values?? I’m using a random expression so that I can control the timing of it, so I just need a way to clamp the values to 0 and 100.
Also, I’m using seedRandom to make it switch values every second:
seedRandom(Math.floor(time), true);
But how do I get it on the half second?
This is basic stuff I know but I can never remember expressions…