ScratchData LogoScratchData
Back to RobFarley74's profile

Lava Lamp

RORobFarley74•Created January 6, 2022
Lava Lamp
49
30
354 views
View on Scratch

Instructions

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

Description

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

Project Details

Project ID624682780
CreatedJanuary 6, 2022
Last ModifiedMarch 24, 2022
SharedJanuary 7, 2022
Visibilityvisible
CommentsAllowed