# Is there a simple way to show 3 images changing

I have been playing around with timed images. I want to make it look like it is snowing with three different PNG snowflake images. Is there a simple formula to show an image every third second? Or something like it?

These are not my codes and I donâ€™t remember who originally posted them or I would credit him, but these are the codes I have been using.

\$((floor(#Ds#/3))-(#Ds#/3))=0?100:0\$
\$((floor(#Ds#/3))-(#Ds#/3))<-0.3&&((floor(#Ds#/3))-(#Ds#/3))>-0.4?100:0\$
\$((floor(#Ds#/3))-(#Ds#/3))<-0.6&&((floor(#Ds#/3))-(#Ds#/3))>-0.7?100:0\$

Or if you want to up it to four images

\$((floor(#Ds#/4))-(#Ds#/4))=0?100:0\$
\$((floor(#Ds#/4))-(#Ds#/4))=-0.25?100:0\$
\$((floor(#Ds#/4))-(#Ds#/4))=-0.5?100:0\$
\$((floor(#Ds#/4))-(#Ds#/4))=-0.75?100:0\$

Hope this helps!

4 Likes

Thank you so much! There is so much to learn!! I am having a blast tho!

1 Like

Thanks also from me!

2 Likes

Hereâ€™s the tutorial by Tomas that also covers snowflakes:

3 Likes

Thank you Linlay!! What a great community this is!!!

3 Likes

You can also try the modulus operator to set the opacity for the image element:

Image 1 opacity: \$(#Ds#%3)=0?100:0\$
Image 2 opacity: \$(#Ds#%3)=1?100:0\$
Image 3 opacity: \$(#Ds#%3)=2?100:0\$

1 Like

Thank you very much, it helped me a lot

1 Like