-
Mr. Dan Ebberts Expression for Blinking help
Hi there, Mr. Ebberts wrote this expression about 4 years ago. I just found it in the archives of Creative Cow.
Could someone please help me understand why this expression makes a layer blink the specified duration? I’m not understanding the math in this one.
f=2; //duration of flash (in seconds)
if (Math.sin(time*Math.PI/f) >= 0){
100
}
else{
0
}The line I don’t get is:
if (Math.sin(time*Math.PI/f) >= 0){
Thanks!
– Derrick