Support and General Use > Theming and Appearance Customization

Blinking Animation?

(1/2) > >>

RockBoxFan:
I'm trying to blink an animated icon.  I can animate it like this:
%t(0.1)%xd(ma);%t(0.1)%xd(mb);%t(0.1)%xd(mc)

Can I "blink" the animated icon?

Logically, I would like to do this:
%t(12)(%t(0.1)%xd(ma);%t(0.1)%xd(mb);%t(0.1)%xd(mc));%t(4)
...to run the animation for 12 seconds, then turn it off for 4 seconds.  (This obviously does not work...)

Is there a proper way to do this?

Thanks.

ploco:
I would try something like this:

%t(12)%Vd(ANIMATE);%t(4)%Vd(EMPTY)

%Vl(ANIMATE,0,0,100,100,-)
%t(0.1)%xd(ma);%t(0.1)%xd(mb);%t(0.1)%xd(mc)

%Vl(EMPTY,0,0,100,100,-)

RockBoxFan:
Thanks for the suggestion.  This does not seem to work.  It seems that I can't use %Vd() with %t().
I other words:

%t(12)%Vd(ANIMATE);%t(4)%Vd(EMPTY)

does not seem to be a valid construction.  It does not crash, but it does not work as I hoped, either.  I also tried this inside a viewport, to no avail...

Any other thoughts would be appreciated.

ploco:
I've test with %Vd, %vs, or %vg but none of them works.
but one really ugly way I could think of - copy and paste the code to fill the entire 12 secs.

nick_p:
Why don't you just place an empty frame in your animation image strip?

http://www.rockbox.org/wiki/CustomWPS#Bitmap_Strips

Navigation

[0] Message Index

[#] Next page

Go to full version