Page 1 of 1

Bitmap Array Loader

Posted: Thu Apr 18, 2019 3:44 pm
by trogluddite
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...

bitmap_array_loader.fsm
(430.05 KiB) Downloaded 901 times


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.)

Re: Bitmap Array Loader

Posted: Fri Apr 19, 2019 2:17 am
by wlangfor@uoguelph.ca
interesting, I'll be taking a look at this, thankyou :D.

Re: Bitmap Array Loader

Posted: Fri Apr 19, 2019 6:59 am
by kortezzzz
Awesome array loader :D 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 :D Thankssssss