Skip to content
Built on the Blobscape engine

Published

Lava Lamp

Wax warms on the bottom of the glass until a bud of it swells up, stretches away from the pool and rises. At the top it cools, sinks and runs back in. Pick the wax and liquid, the base it stands in, and how it is drawn.

Starting the splat engine…

Warming up…On WebGPU or WebGL 2
Wax and liquid
Base and cap

With the bulb off the wax still moves, for a while, as a lamp's does once it is warm.

How it works

Wax that is lighter when warm

The wax is a pool on the bottom and a handful of blobs, each with a size, a temperature and a speed. The bulb warms the pool until a bud of it swells up, fed by the pool and still tied to it by a neck of wax. Warm wax weighs a little less than the liquid and rises. Only the liquid just over the bulb is warm, so a blob loses its heat through its skin all the way up, faster the smaller it is, and turns over and sinks back. A big one keeps its heat longest and lingers at the top.

The neck thins as the bud pulls away until it pinches off, as a thread of honey does, leaving a tail on the bud and a spike on the pool that draw back in. Blobs never pass through each other: two that meet press together and flatten while the film of liquid between them drains, and often part again. Once it has drained a bridge of wax opens between them and widens, and the smaller runs into the larger over a second or two. A blob that sinks onto the pool melts back into it the same way.

Thirty times a second that surface is cut into a few thousand flat blobs a grid cell apart, each lying along the wax and colored by how hot it is, and the bulb's light comes up through them from below.