So this was just one of "those ideas"... Hit the green flag to turn it on. Slider will adjust the number of blobs it's working with, the fewer the faster it'll run. Clicking the Lava Colour or Lava Liquid buttons will change the colours of the lava or liquid. If you want lots of lava lumps you're best off in Turbowarp: https://turbowarp.org/624682780?hqpen
Basically it's a slightly odd particle engine, all the lava blobs collide in a smooshy kind of way, the also collide with the edges of the lamp in a squishy kind of way. Towards the bottom they warm up and become more buoyant and therefore rise. At the top they cool and become less buoyant and so they fall. They colour fade based on their vertical position and they're random sizes, their size makes no difference to anything right now. I was hoping this would look more spoodgy that it does, as it happens I think it just looks like a bunch of balls in a jar... I might look at improving this, I think basically any blobs touching needs to be the same colour and kinda group themselves up, maybe even have some stickiness to each other... not sure... But this is done for now! #lavalamp #pen #experiment #physics