Right... I wanted to animate lava, for another project, but I wanted it to be stylized, cartoony. I'm happy enough with the result, although the math is overly complicated. As the "other project" might never happen, I'll share this study now. All code by me (@kriblo).