This is some random plasma generation, based on the midpoint displacement algorithm. I found it mentioned in some LudumDare game source code.
Have a look at my website under Game development for more information.
http://www.haaks.net/gamedevcode/index.html