Hehe yesterday I did something similar, with the Construct video recorder, I made a video of a few seconds of the sprite, even if I didn't know how to make the background transparent, I used a white one to try to remove later, then I passed it to an online site to have the gif and I used it as an animation, even if the loop was seen to skip at a certain point, it didn't seem to have the same fluidity and then repeating the image for a few seconds wasn't as nice as the continuous random.
I don't know what the result of the random meshes would be, but I'm not able to create the code.
It almost seems like a bug, I don't understand why the effects behave like this, too bad I can't use them
Thanks anyway for the ideas suggested!