Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Blinking Animation?
« previous next »
  • Print
Pages: [1]

Author Topic: Blinking Animation?  (Read 1782 times)

Offline RockBoxFan

  • Member
  • *
  • Posts: 55
Blinking Animation?
« on: April 16, 2015, 10:34:15 AM »
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.
Logged

Offline ploco

  • Member
  • *
  • Posts: 18
Re: Blinking Animation?
« Reply #1 on: April 16, 2015, 03:39:28 PM »
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,-)
Logged

Offline RockBoxFan

  • Member
  • *
  • Posts: 55
Re: Blinking Animation?
« Reply #2 on: April 16, 2015, 04:16:05 PM »
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.
Logged

Offline ploco

  • Member
  • *
  • Posts: 18
Re: Blinking Animation?
« Reply #3 on: April 17, 2015, 07:20:09 AM »
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.

Logged

Offline nick_p

  • Member
  • *
  • Posts: 115
Re: Blinking Animation?
« Reply #4 on: April 17, 2015, 08:21:52 AM »
Why don't you just place an empty frame in your animation image strip?

http://www.rockbox.org/wiki/CustomWPS#Bitmap_Strips
« Last Edit: April 17, 2015, 08:24:18 AM by nick_p »
Logged

Offline RockBoxFan

  • Member
  • *
  • Posts: 55
Re: Blinking Animation?
« Reply #5 on: April 20, 2015, 08:41:36 AM »
Thank you for your suggestions. 

Ploco, I tried your "ugly" method, but 120 %t(0.1) statements don't add up to 12 seconds, presumably due to software latency or something, so the blinking gets out of sync with other elements.

Unless I have missed something, I think I will have to chalk this up to a "can't do," and just try to redesign the concept.

Again, thanks for the help.  I love this community and it's support!
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Blinking Animation?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.073 seconds with 15 queries.