If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Bitmap Array Loader
3 posts
• Page 1 of 1
Bitmap Array Loader
Inspired by kortezzzz's cool Dancing Lady synth, which uses multiple bitmaps to make GUI animations, I thought it would be nice if you could load a whole array of bitmaps all in one go. Ruby's file system and string handling make this kind of thing much easier than it used to be, so...
The image files must all be in the same folder, and must have the same beginning to the file name plus a number at the end (e.g. "my_image_001.png", "my_image_002.png", etc.). Choose any one of the numbered files in the File dialogue to load all of the matching files into the Bitmap Array at once. The numbers are just used to sort the bitmaps into order, so they don't have to be sequential or start at any particular value, or even to have the same number of digits. There's a wireless trigger built in called 'Update All Bitmaps' which can be used to update multiple modules all at once (as in my Auto Updatey Thing modules.)
The image files must all be in the same folder, and must have the same beginning to the file name plus a number at the end (e.g. "my_image_001.png", "my_image_002.png", etc.). Choose any one of the numbered files in the File dialogue to load all of the matching files into the Bitmap Array at once. The numbers are just used to sort the bitmaps into order, so they don't have to be sequential or start at any particular value, or even to have the same number of digits. There's a wireless trigger built in called 'Update All Bitmaps' which can be used to update multiple modules all at once (as in my Auto Updatey Thing modules.)
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
Don't stagnate, mutate to create!
-
trogluddite - Posts: 1730
- Joined: Fri Oct 22, 2010 12:46 am
- Location: Yorkshire, UK
Re: Bitmap Array Loader
interesting, I'll be taking a look at this, thankyou .
-
wlangfor@uoguelph.ca - Posts: 912
- Joined: Tue Apr 03, 2018 5:50 pm
- Location: North Bay, Ontario, Canada
Re: Bitmap Array Loader
Awesome array loader Your little Ruby tricks are legendary, trog. They helped me in so many situations where I just couldn't find anything else, so this one is reloaded straight to the cartridge, waiting for the "We better seek trog's toolbox category for that" day Thankssssss
-
kortezzzz - Posts: 763
- Joined: Tue Mar 19, 2013 4:21 pm
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 45 guests